Class: OpenApiSDK::Models::Operations::ListCommissionsResponse

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/listcommissions_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(result:) ⇒ ListCommissionsResponse

Returns a new instance of ListCommissionsResponse.



21
22
23
# File 'lib/open_api_sdk/models/operations/listcommissions_response.rb', line 21

def initialize(result:)
  @result = result
end

Instance Attribute Details

#next_pageObject

Returns the value of attribute next_page.



15
16
17
# File 'lib/open_api_sdk/models/operations/listcommissions_response.rb', line 15

def next_page
  @next_page
end

Instance Method Details

#==(other) ⇒ Object



26
27
28
29
30
# File 'lib/open_api_sdk/models/operations/listcommissions_response.rb', line 26

def ==(other)
  return false unless other.is_a? self.class
  return false unless @result == other.result
  true
end

#eachObject



32
33
34
35
36
37
38
39
40
# File 'lib/open_api_sdk/models/operations/listcommissions_response.rb', line 32

def each
  page = self
  loop do
    yield page
    next_page = page.next_page.call if page.next_page
    break if next_page.nil?
    page = T.must(next_page)
  end
end