Class: Moov::Models::Components::BillingInterchangeProgramFee
- Inherits:
-
Object
- Object
- Moov::Models::Components::BillingInterchangeProgramFee
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/billinginterchangeprogramfee.rb
Overview
Details of a specific interchange program fee.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(program_name:, count:, percentage_rate:, per_item_rate:, total:, transfer_volume:) ⇒ BillingInterchangeProgramFee
constructor
A new instance of BillingInterchangeProgramFee.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(program_name:, count:, percentage_rate:, per_item_rate:, total:, transfer_volume:) ⇒ BillingInterchangeProgramFee
Returns a new instance of BillingInterchangeProgramFee.
29 30 31 32 33 34 35 36 |
# File 'lib/moov/models/components/billinginterchangeprogramfee.rb', line 29 def initialize(program_name:, count:, percentage_rate:, per_item_rate:, total:, transfer_volume:) @program_name = program_name @count = count @percentage_rate = percentage_rate @per_item_rate = per_item_rate @total = total @transfer_volume = transfer_volume end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/billinginterchangeprogramfee.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @program_name == other.program_name return false unless @count == other.count return false unless @percentage_rate == other.percentage_rate return false unless @per_item_rate == other.per_item_rate return false unless @total == other.total return false unless @transfer_volume == other.transfer_volume true end |