Class: OpenApiSDK::Models::Operations::GetCustomersResponse
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Operations::GetCustomersResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/operations/getcustomers_response.rb
Instance Attribute Summary collapse
-
#next_page ⇒ Object
Returns the value of attribute next_page.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #each ⇒ Object
-
#initialize(result:) ⇒ GetCustomersResponse
constructor
A new instance of GetCustomersResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(result:) ⇒ GetCustomersResponse
Returns a new instance of GetCustomersResponse.
21 22 23 |
# File 'lib/open_api_sdk/models/operations/getcustomers_response.rb', line 21 def initialize(result:) @result = result end |
Instance Attribute Details
#next_page ⇒ Object
Returns the value of attribute next_page.
15 16 17 |
# File 'lib/open_api_sdk/models/operations/getcustomers_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/getcustomers_response.rb', line 26 def ==(other) return false unless other.is_a? self.class return false unless @result == other.result true end |
#each ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/open_api_sdk/models/operations/getcustomers_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 |