Class: Yahoo::SE::Result
- Inherits:
-
Object
- Object
- Yahoo::SE::Result
- Defined in:
- lib/yahoo-se/result.rb
Instance Method Summary collapse
-
#click_url ⇒ Object
The URL that should be used to link to the inlinking page.
-
#initialize(hash) ⇒ Result
constructor
A new instance of Result.
-
#title ⇒ Object
The title of the linking web page.
-
#url ⇒ Object
The URL for the linking web page.
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_url ⇒ Object
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 |
#title ⇒ Object
The title of the linking web page.
9 10 11 |
# File 'lib/yahoo-se/result.rb', line 9 def title @hash["Title"] end |
#url ⇒ Object
The URL for the linking web page.
14 15 16 |
# File 'lib/yahoo-se/result.rb', line 14 def url @hash["Url"] end |