Class: Twitter::SearchResults
- Inherits:
-
Object
- Object
- Twitter::SearchResults
- Includes:
- Enumerable, Utils
- Defined in:
- lib/twitter/search_results.rb
Overview
Represents search results from Twitter
Instance Attribute Summary collapse
-
#attrs ⇒ Twitter::RateLimit
(also: #to_h)
readonly
The rate limit information from the response.
-
#rate_limit ⇒ Twitter::RateLimit
readonly
The rate limit information from the response.
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
51 52 53 54 55 56 57 58 |
# File 'lib/twitter/search_results.rb', line 51 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 ⇒ Twitter::RateLimit Also known as: to_h
The rate limit information from the response
26 27 28 |
# File 'lib/twitter/search_results.rb', line 26 def attrs @attrs end |
#rate_limit ⇒ Twitter::RateLimit (readonly)
The rate limit information from the response
26 27 28 |
# File 'lib/twitter/search_results.rb', line 26 def rate_limit @rate_limit end |