Class: Moov::Models::Components::CreateTransferLineItemValidationError

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/createtransferlineitemvalidationerror.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(product_id: nil, name: nil, base_price: nil, options: nil, quantity: nil, image_i_ds: nil) ⇒ CreateTransferLineItemValidationError

Returns a new instance of CreateTransferLineItemValidationError.



29
30
31
32
33
34
35
36
# File 'lib/moov/models/components/createtransferlineitemvalidationerror.rb', line 29

def initialize(product_id: nil, name: nil, base_price: nil, options: nil, quantity: nil, image_i_ds: nil)
  @product_id = product_id
  @name = name
  @base_price = base_price
  @options = options
  @quantity = quantity
  @image_i_ds = image_i_ds
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/moov/models/components/createtransferlineitemvalidationerror.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @product_id == other.product_id
  return false unless @name == other.name
  return false unless @base_price == other.base_price
  return false unless @options == other.options
  return false unless @quantity == other.quantity
  return false unless @image_i_ds == other.image_i_ds
  true
end