Class: Googling::Search
- Inherits:
-
Object
- Object
- Googling::Search
- Defined in:
- lib/googling/search.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(keywords) ⇒ Search
constructor
A new instance of Search.
Constructor Details
#initialize(keywords) ⇒ Search
Returns a new instance of Search.
9 10 11 |
# File 'lib/googling/search.rb', line 9 def initialize(keywords) @keywords = keywords.to_s.to_uri end |
Instance Attribute Details
#list ⇒ Object (readonly)
Returns the value of attribute list.
8 9 10 |
# File 'lib/googling/search.rb', line 8 def list @list end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/googling/search.rb', line 8 def response @response end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 |
# File 'lib/googling/search.rb', line 13 def execute make_request parse_results end |