Class: Yahoo::SE::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/yahoo-se/result.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Result

Returns a new instance of Result.



4
5
6
# File 'lib/yahoo-se/result.rb', line 4

def initialize(hash)
  @hash = hash
end

Instance Method Details

#click_urlObject

The URL that should be used to link to the inlinking page. See URL linking for more information.



19
20
21
# File 'lib/yahoo-se/result.rb', line 19

def click_url
  @hash["ClickUrl"]
end

#titleObject

The title of the linking web page.



9
10
11
# File 'lib/yahoo-se/result.rb', line 9

def title
  @hash["Title"]
end

#urlObject

The URL for the linking web page.



14
15
16
# File 'lib/yahoo-se/result.rb', line 14

def url
  @hash["Url"]
end