Class: Twitter::SearchResults

Inherits:
Object
  • Object
show all
Includes:
Enumerable, Utils
Defined in:
lib/twitter/search_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

flat_pmap, pmap

Methods included from Enumerable

#each

Constructor Details

#initialize(request) ⇒ Twitter::SearchResults

Initializes a new SearchResults object

Parameters:



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.options
  @collection = []
  self.attrs = request.perform
end

Instance Attribute Details

#attrsHash Also known as: to_h

Returns:

  • (Hash)


12
13
14
# File 'lib/twitter/search_results.rb', line 12

def attrs
  @attrs
end

#rate_limitHash (readonly)

Returns:

  • (Hash)


12
13
14
# File 'lib/twitter/search_results.rb', line 12

def rate_limit
  @rate_limit
end