Parent

Methods

Class/Module Index [+]

Quicksearch

Twitter::Cursor

Attributes

attrs[R]
to_h[R]

Public Class Methods

new(attrs, key, klass, request) click to toggle source

Initializes a new Cursor

@param attrs [Hash] @param key [String, Symbol] The key to fetch the data from the response @param klass [Class] The class to instantiate objects in the response @param request [Twitter::Request] @return [Twitter::Cursor]

# File lib/twitter/cursor.rb, line 20
def initialize(attrs, 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 = attrs
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.