Class: SimpleGoogleCustomSearch::Result
- Inherits:
-
Object
- Object
- SimpleGoogleCustomSearch::Result
- Defined in:
- lib/simple_google_custom_search/result.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#link ⇒ Object
Returns the value of attribute link.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(attrs = {}) ⇒ Result
Returns a new instance of Result.
4 5 6 7 8 |
# File 'lib/simple_google_custom_search/result.rb', line 4 def initialize(attrs={}) @title = attrs[:title] || '' @link = attrs[:link] || '' @description = attrs[:description] || '' end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/simple_google_custom_search/result.rb', line 2 def description @description end |
#link ⇒ Object
Returns the value of attribute link.
2 3 4 |
# File 'lib/simple_google_custom_search/result.rb', line 2 def link @link end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/simple_google_custom_search/result.rb', line 2 def title @title end |