Class: Moov::Models::Components::CreatePaymentLinkLineItemValidationError
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreatePaymentLinkLineItemValidationError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createpaymentlinklineitemvalidationerror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(product_id: nil, name: nil, base_price: nil, options: nil, quantity: nil) ⇒ CreatePaymentLinkLineItemValidationError
constructor
A new instance of CreatePaymentLinkLineItemValidationError.
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) ⇒ CreatePaymentLinkLineItemValidationError
Returns a new instance of CreatePaymentLinkLineItemValidationError.
27 28 29 30 31 32 33 |
# File 'lib/moov/models/components/createpaymentlinklineitemvalidationerror.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 = @quantity = quantity end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/moov/models/components/createpaymentlinklineitemvalidationerror.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. return false unless @quantity == other.quantity true end |