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) ⇒ 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) ⇒ IncurredFee
Returns a new instance of IncurredFee.
32 33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/components/incurredfee.rb', line 32 def initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: 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 end |
Instance Method Details
#==(other) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/moov/models/components/incurredfee.rb', line 43 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 true end |