Class: Twitter::SearchResults
- Inherits:
-
Base
- Object
- Base
- Twitter::SearchResults
show all
- Defined in:
- lib/twitter/search_results.rb
Instance Attribute Summary
Attributes inherited from Base
#attrs
Instance Method Summary
collapse
Methods inherited from Base
#[], attr_reader, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Method Details
#completed_in ⇒ Float
17
18
19
|
# File 'lib/twitter/search_results.rb', line 17
def completed_in
@attrs[:search_metadata][:completed_in] unless @attrs[:search_metadata].nil?
end
|
#max_id ⇒ Integer
22
23
24
|
# File 'lib/twitter/search_results.rb', line 22
def max_id
@attrs[:search_metadata][:max_id] unless @attrs[:search_metadata].nil?
end
|
#page ⇒ Integer
27
28
29
|
# File 'lib/twitter/search_results.rb', line 27
def page
@attrs[:search_metadata][:page] unless @attrs[:search_metadata].nil?
end
|
32
33
34
|
# File 'lib/twitter/search_results.rb', line 32
def query
@attrs[:search_metadata][:query] unless @attrs[:search_metadata].nil?
end
|
#results_per_page ⇒ Integer
Also known as:
rpp
37
38
39
|
# File 'lib/twitter/search_results.rb', line 37
def results_per_page
@attrs[:search_metadata][:results_per_page] unless @attrs[:search_metadata].nil?
end
|
#since_id ⇒ Integer
43
44
45
|
# File 'lib/twitter/search_results.rb', line 43
def since_id
@attrs[:search_metadata][:since_id] unless @attrs[:search_metadata].nil?
end
|