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, = {}) @client = client @url = url = @model = [:model] @headers = [:headers] || {} @params = [:params] || {} @max_results = [:max_results] @container = [:container] || 'data' @collection = [] @after_cursor = .fetch(:after_cursor, nil) end |