Class: Moov::Models::Components::BillingSummaryDetails
- Inherits:
-
Object
- Object
- Moov::Models::Components::BillingSummaryDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/billingsummarydetails.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(volume_amount: nil, volume_count: nil, fee_amount: nil, merchant_fees_collected: nil, partner_fees_assessed: nil, net_income: nil) ⇒ BillingSummaryDetails
constructor
A new instance of BillingSummaryDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(volume_amount: nil, volume_count: nil, fee_amount: nil, merchant_fees_collected: nil, partner_fees_assessed: nil, net_income: nil) ⇒ BillingSummaryDetails
Returns a new instance of BillingSummaryDetails.
33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/components/billingsummarydetails.rb', line 33 def initialize(volume_amount: nil, volume_count: nil, fee_amount: nil, merchant_fees_collected: nil, partner_fees_assessed: nil, net_income: nil) @volume_amount = volume_amount @volume_count = volume_count @fee_amount = fee_amount @merchant_fees_collected = merchant_fees_collected @partner_fees_assessed = partner_fees_assessed @net_income = net_income end |
Instance Method Details
#==(other) ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/moov/models/components/billingsummarydetails.rb', line 43 def ==(other) return false unless other.is_a? self.class return false unless @volume_amount == other.volume_amount return false unless @volume_count == other.volume_count return false unless @fee_amount == other.fee_amount return false unless @merchant_fees_collected == other.merchant_fees_collected return false unless @partner_fees_assessed == other.partner_fees_assessed return false unless @net_income == other.net_income true end |