Class: StackOne::Models::Shared::CreateJournalLine
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::CreateJournalLine
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/createjournalline.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(account_id: nil, amount: nil, description: nil, tax_amount: nil, tax_rate_id: nil) ⇒ CreateJournalLine
constructor
A new instance of CreateJournalLine.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(account_id: nil, amount: nil, description: nil, tax_amount: nil, tax_rate_id: nil) ⇒ CreateJournalLine
Returns a new instance of CreateJournalLine.
27 28 29 30 31 32 33 |
# File 'lib/stack_one/models/shared/createjournalline.rb', line 27 def initialize(account_id: nil, amount: nil, description: nil, tax_amount: nil, tax_rate_id: nil) @account_id = account_id @amount = amount @description = description @tax_amount = tax_amount @tax_rate_id = tax_rate_id end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/stack_one/models/shared/createjournalline.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @account_id == other.account_id return false unless @amount == other.amount return false unless @description == other.description return false unless @tax_amount == other.tax_amount return false unless @tax_rate_id == other.tax_rate_id true end |