Class: Moov::Models::Components::InvoiceExternalPayment
- Inherits:
-
Object
- Object
- Moov::Models::Components::InvoiceExternalPayment
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/invoiceexternalpayment.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(description: nil, foreign_id: nil, payment_date: nil) ⇒ InvoiceExternalPayment
constructor
A new instance of InvoiceExternalPayment.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(description: nil, foreign_id: nil, payment_date: nil) ⇒ InvoiceExternalPayment
Returns a new instance of InvoiceExternalPayment.
23 24 25 26 27 |
# File 'lib/moov/models/components/invoiceexternalpayment.rb', line 23 def initialize(description: nil, foreign_id: nil, payment_date: nil) @description = description @foreign_id = foreign_id @payment_date = payment_date end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/moov/models/components/invoiceexternalpayment.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @description == other.description return false unless @foreign_id == other.foreign_id return false unless @payment_date == other.payment_date true end |