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