Class: Clerk::Models::Components::CommerceSubscriptionCreditResponseAmount
- Inherits:
-
Object
- Object
- Clerk::Models::Components::CommerceSubscriptionCreditResponseAmount
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/commercesubscriptioncreditresponse_amount.rb
Overview
Credit amount.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(amount:, amount_formatted:, currency:, currency_symbol:) ⇒ CommerceSubscriptionCreditResponseAmount
constructor
A new instance of CommerceSubscriptionCreditResponseAmount.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(amount:, amount_formatted:, currency:, currency_symbol:) ⇒ CommerceSubscriptionCreditResponseAmount
Returns a new instance of CommerceSubscriptionCreditResponseAmount.
25 26 27 28 29 30 |
# File 'lib/clerk/models/components/commercesubscriptioncreditresponse_amount.rb', line 25 def initialize(amount:, amount_formatted:, currency:, currency_symbol:) @amount = amount @amount_formatted = amount_formatted @currency = currency @currency_symbol = currency_symbol end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/clerk/models/components/commercesubscriptioncreditresponse_amount.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @amount == other.amount return false unless @amount_formatted == other.amount_formatted return false unless @currency == other.currency return false unless @currency_symbol == other.currency_symbol true end |