Class: FastpixClient::Models::Components::DataPagination
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::DataPagination
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/datapagination.rb
Overview
Pagination organizes content into pages for better readability and navigation.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(total_records: nil, current_offset: nil, offset_count: nil) ⇒ DataPagination
constructor
A new instance of DataPagination.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(total_records: nil, current_offset: nil, offset_count: nil) ⇒ DataPagination
Returns a new instance of DataPagination.
28 29 30 31 32 |
# File 'lib/fastpix_client/models/components/datapagination.rb', line 28 def initialize(total_records: nil, current_offset: nil, offset_count: nil) @total_records = total_records @current_offset = current_offset @offset_count = offset_count end |
Instance Method Details
#==(other) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/fastpix_client/models/components/datapagination.rb', line 35 def ==(other) return false unless other.is_a? self.class return false unless @total_records == other.total_records return false unless @current_offset == other.current_offset return false unless @offset_count == other.offset_count true end |