Class: StackOne::Models::Shared::AccountingJournalCreateRequestDto
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::AccountingJournalCreateRequestDto
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/accountingjournalcreaterequestdto.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(currency_code: nil, exchange_rate: nil, lines: nil, memo: nil, reference: nil, transaction_date: nil) ⇒ AccountingJournalCreateRequestDto
constructor
A new instance of AccountingJournalCreateRequestDto.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(currency_code: nil, exchange_rate: nil, lines: nil, memo: nil, reference: nil, transaction_date: nil) ⇒ AccountingJournalCreateRequestDto
Returns a new instance of AccountingJournalCreateRequestDto.
29 30 31 32 33 34 35 36 |
# File 'lib/stack_one/models/shared/accountingjournalcreaterequestdto.rb', line 29 def initialize(currency_code: nil, exchange_rate: nil, lines: nil, memo: nil, reference: nil, transaction_date: nil) @currency_code = currency_code @exchange_rate = exchange_rate @lines = lines @memo = memo @reference = reference @transaction_date = transaction_date end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stack_one/models/shared/accountingjournalcreaterequestdto.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @currency_code == other.currency_code return false unless @exchange_rate == other.exchange_rate return false unless @lines == other.lines return false unless @memo == other.memo return false unless @reference == other.reference return false unless @transaction_date == other.transaction_date true end |