Class: Moov::Models::Components::CreateInvoiceLineItemOption
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateInvoiceLineItemOption
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createinvoicelineitemoption.rb
Overview
Represents a modifier or option applied to a line item.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, quantity:, price_modifier: nil, group: nil, image_i_ds: nil) ⇒ CreateInvoiceLineItemOption
constructor
A new instance of CreateInvoiceLineItemOption.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name:, quantity:, price_modifier: nil, group: nil, image_i_ds: nil) ⇒ CreateInvoiceLineItemOption
Returns a new instance of CreateInvoiceLineItemOption.
27 28 29 30 31 32 33 |
# File 'lib/moov/models/components/createinvoicelineitemoption.rb', line 27 def initialize(name:, quantity:, price_modifier: nil, group: nil, image_i_ds: nil) @name = name @quantity = quantity @price_modifier = price_modifier @group = group @image_i_ds = image_i_ds end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/moov/models/components/createinvoicelineitemoption.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @quantity == other.quantity return false unless @price_modifier == other.price_modifier return false unless @group == other.group return false unless @image_i_ds == other.image_i_ds true end |