Class: KintsugiSDK::Models::Shared::PageProductRead

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kintsugi_sdk/models/shared/page_productread_.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(items:, total:, page:, size:, pages: nil) ⇒ PageProductRead

Returns a new instance of PageProductRead.



28
29
30
31
32
33
34
# File 'lib/kintsugi_sdk/models/shared/page_productread_.rb', line 28

def initialize(items:, total:, page:, size:, pages: nil)
  @items = items
  @total = total
  @page = page
  @size = size
  @pages = pages
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/kintsugi_sdk/models/shared/page_productread_.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @items == other.items
  return false unless @total == other.total
  return false unless @page == other.page
  return false unless @size == other.size
  return false unless @pages == other.pages
  true
end