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

- (Twitter::SearchResults) initialize(attrs, request)

Initializes a new SearchResults object



20
21
22
23
24
25
26
27
# File 'lib/twitter/search_results.rb', line 20

def initialize(attrs, request)
  @client = request.client
  @request_method = request.verb
  @path = request.path
  @options = request.options
  @collection = []
  self.attrs = attrs
end

Instance Attribute Details

- (Object) attrs Also known as: to_h

Returns the value of attribute attrs



10
11
12
# File 'lib/twitter/search_results.rb', line 10

def attrs
  @attrs
end