Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Inside the AfterTheDeadline class
- def check(data)
- result = self.class.post('/checkDocumet', :query => {:data => data})
- @result result['results']
- end
- def url
- error = @result['error']
- url = error['url']
- end
- # Doing this grabs the results fine
- data = "I'm really hating this wether!"
- atd = AfterTheDeadline.new
- result = atd.check(data)
- p result.url
- # But the last line throws this at me
- after_the_deadline.rb:33: undefined method `url' for #<Hash:0xb787cce4> (NoMethodError)
Add Comment
Please, Sign In to add comment