Class: GoogleBase::SearchResponse
- Inherits:
-
Object
- Object
- GoogleBase::SearchResponse
- Defined in:
- lib/allyourbase.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#options ⇒ Object
Returns the value of attribute options.
-
#results ⇒ Object
Returns the value of attribute results.
-
#terms ⇒ Object
Returns the value of attribute terms.
Instance Method Summary collapse
-
#initialize(attrs = nil) ⇒ SearchResponse
constructor
A new instance of SearchResponse.
- #next_page ⇒ Object
- #prev_page ⇒ Object
Constructor Details
#initialize(attrs = nil) ⇒ SearchResponse
Returns a new instance of SearchResponse.
77 78 79 80 81 |
# File 'lib/allyourbase.rb', line 77 def initialize(attrs = nil) attrs.each_pair do |k,v| send "#{k}=", v end if(attrs) end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
75 76 77 |
# File 'lib/allyourbase.rb', line 75 def count @count end |
#limit ⇒ Object
Returns the value of attribute limit.
75 76 77 |
# File 'lib/allyourbase.rb', line 75 def limit @limit end |
#offset ⇒ Object
Returns the value of attribute offset.
75 76 77 |
# File 'lib/allyourbase.rb', line 75 def offset @offset end |
#options ⇒ Object
Returns the value of attribute options.
75 76 77 |
# File 'lib/allyourbase.rb', line 75 def @options end |
#results ⇒ Object
Returns the value of attribute results.
75 76 77 |
# File 'lib/allyourbase.rb', line 75 def results @results end |
#terms ⇒ Object
Returns the value of attribute terms.
75 76 77 |
# File 'lib/allyourbase.rb', line 75 def terms @terms end |
Instance Method Details
#next_page ⇒ Object
83 84 85 |
# File 'lib/allyourbase.rb', line 83 def next_page raise "TODO" end |
#prev_page ⇒ Object
87 88 89 |
# File 'lib/allyourbase.rb', line 87 def prev_page raise "TODO" end |