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.
78 79 80 81 82 |
# File 'lib/allyourbase.rb', line 78 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.
76 77 78 |
# File 'lib/allyourbase.rb', line 76 def count @count end |
#limit ⇒ Object
Returns the value of attribute limit.
76 77 78 |
# File 'lib/allyourbase.rb', line 76 def limit @limit end |
#offset ⇒ Object
Returns the value of attribute offset.
76 77 78 |
# File 'lib/allyourbase.rb', line 76 def offset @offset end |
#options ⇒ Object
Returns the value of attribute options.
76 77 78 |
# File 'lib/allyourbase.rb', line 76 def @options end |
#results ⇒ Object
Returns the value of attribute results.
76 77 78 |
# File 'lib/allyourbase.rb', line 76 def results @results end |
#terms ⇒ Object
Returns the value of attribute terms.
76 77 78 |
# File 'lib/allyourbase.rb', line 76 def terms @terms end |
Instance Method Details
#next_page ⇒ Object
84 85 86 |
# File 'lib/allyourbase.rb', line 84 def next_page raise "TODO" end |
#prev_page ⇒ Object
88 89 90 |
# File 'lib/allyourbase.rb', line 88 def prev_page raise "TODO" end |