Class: Moov::Models::Components::IncurredFee
- Inherits:
-
Object
- Object
- Moov::Models::Components::IncurredFee
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/incurredfee.rb
Overview
A fee incurred by a user.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: nil, fee_group: nil, residual_id: nil) ⇒ IncurredFee
constructor
A new instance of IncurredFee.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: nil, fee_group: nil, residual_id: nil) ⇒ IncurredFee
Returns a new instance of IncurredFee.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/moov/models/components/incurredfee.rb', line 35 def initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: nil, fee_group: nil, residual_id: nil) @fee_id = fee_id @account_id = account_id @wallet_id = wallet_id @created_on = created_on @fee_name = fee_name @amount = amount @generated_by = generated_by @fee_group = fee_group @residual_id = residual_id end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/moov/models/components/incurredfee.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @fee_id == other.fee_id return false unless @account_id == other.account_id return false unless @wallet_id == other.wallet_id return false unless @created_on == other.created_on return false unless @fee_name == other.fee_name return false unless @amount == other.amount return false unless @generated_by == other.generated_by return false unless @fee_group == other.fee_group return false unless @residual_id == other.residual_id true end |