Class: Moov::Models::Components::CreateInvoiceLineItemValidationError

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/createinvoicelineitemvalidationerror.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) ⇒ CreateInvoiceLineItemValidationError

Returns a new instance of CreateInvoiceLineItemValidationError.



27
28
29
30
31
32
33
# File 'lib/moov/models/components/createinvoicelineitemvalidationerror.rb', line 27

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

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/moov/models/components/createinvoicelineitemvalidationerror.rb', line 36

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
  true
end