Class: Twitter::SearchResults
- Inherits:
-
Object
- Object
- Twitter::SearchResults
- Includes:
- Enumerable, Utils
- Defined in:
- lib/twitter/search_results.rb
Instance Attribute Summary collapse
- #attrs ⇒ Hash (also: #to_h) readonly
- #rate_limit ⇒ Hash readonly
Instance Method Summary collapse
-
#initialize(request) ⇒ Twitter::SearchResults
constructor
Initializes a new SearchResults object.
Methods included from Utils
Methods included from Enumerable
Constructor Details
#initialize(request) ⇒ Twitter::SearchResults
Initializes a new SearchResults object
20 21 22 23 24 25 26 27 |
# File 'lib/twitter/search_results.rb', line 20 def initialize(request) @client = request.client @request_method = request.verb @path = request.path @options = request. @collection = [] self.attrs = request.perform end |
Instance Attribute Details
#attrs ⇒ Hash Also known as: to_h
12 13 14 |
# File 'lib/twitter/search_results.rb', line 12 def attrs @attrs end |
#rate_limit ⇒ Hash (readonly)
12 13 14 |
# File 'lib/twitter/search_results.rb', line 12 def rate_limit @rate_limit end |