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