Class: Moov::Models::Components::FeePlan
- Inherits:
-
Object
- Object
- Moov::Models::Components::FeePlan
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/feeplan.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(plan_id:, name:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil) ⇒ FeePlan
constructor
A new instance of FeePlan.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(plan_id:, name:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil) ⇒ FeePlan
Returns a new instance of FeePlan.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/moov/models/components/feeplan.rb', line 34 def initialize(plan_id:, name:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil) @plan_id = plan_id @name = name @card_acquiring_model = card_acquiring_model @billable_fees = billable_fees @minimum_commitment = minimum_commitment @monthly_platform_fee = monthly_platform_fee @created_at = created_at @description = description end |
Instance Method Details
#==(other) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/moov/models/components/feeplan.rb', line 46 def ==(other) return false unless other.is_a? self.class return false unless @plan_id == other.plan_id return false unless @name == other.name return false unless @card_acquiring_model == other.card_acquiring_model return false unless @billable_fees == other.billable_fees return false unless @minimum_commitment == other.minimum_commitment return false unless @monthly_platform_fee == other.monthly_platform_fee return false unless @created_at == other.created_at return false unless @description == other.description true end |