Class: Twitter::Cursor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

flat_pmap, pmap

Methods included from Enumerable

#each

Constructor Details

#initialize(key, klass, request) ⇒ Twitter::Cursor

Initializes a new Cursor



21
22
23
24
25
26
27
28
29
30
# File 'lib/twitter/cursor.rb', line 21

def initialize(key, klass, request)
  @key = key.to_sym
  @klass = klass
  @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



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

def attrs
  @attrs
end