Method: Cursor#initialize

Defined in:
lib/onelogin/api/cursor.rb

#initialize(client, url, options = {}) ⇒ Cursor

Create a new instance of the Cursor.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/onelogin/api/cursor.rb', line 18

def initialize(client, url, options = {})
  @client = client
  @url = url
  @options = options

  @model = options[:model]
  @headers = options[:headers] || {}
  @params = options[:params] || {}
  @max_results = options[:max_results]
  @container = options[:container] || 'data'

  @collection = []
  @after_cursor = options.fetch(:after_cursor, nil)
end