Class: Clerk::Models::Components::CommercePriceTransitionResponse
- Inherits:
-
Object
- Object
- Clerk::Models::Components::CommercePriceTransitionResponse
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/commercepricetransitionresponse.rb
Overview
A commerce price transition.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, subscription_item:, transition:) ⇒ CommercePriceTransitionResponse
constructor
A new instance of CommercePriceTransitionResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, subscription_item:, transition:) ⇒ CommercePriceTransitionResponse
Returns a new instance of CommercePriceTransitionResponse.
23 24 25 26 27 |
# File 'lib/clerk/models/components/commercepricetransitionresponse.rb', line 23 def initialize(object:, subscription_item:, transition:) @object = object @subscription_item = subscription_item @transition = transition end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/clerk/models/components/commercepricetransitionresponse.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @subscription_item == other.subscription_item return false unless @transition == other.transition true end |