Class: CoreMerchant::SubscriptionPlanChangeEvent
- Inherits:
-
SubscriptionEvent
- Object
- ActiveRecord::Base
- SubscriptionEvent
- CoreMerchant::SubscriptionPlanChangeEvent
- Defined in:
- lib/core_merchant/subscription_event.rb
Overview
Represents a plan change event for a subscription.
Instance Method Summary collapse
Methods inherited from SubscriptionEvent
Instance Method Details
#from_plan ⇒ Object
98 99 100 101 |
# File 'lib/core_merchant/subscription_event.rb', line 98 def from_plan id = ["from_plan_id"] CoreMerchant::SubscriptionPlan.find(id) if id end |
#from_plan=(value) ⇒ Object
103 104 105 |
# File 'lib/core_merchant/subscription_event.rb', line 103 def from_plan=(value) self. = .merge(from_plan_id: value.id) end |
#to_plan ⇒ Object
107 108 109 110 |
# File 'lib/core_merchant/subscription_event.rb', line 107 def to_plan id = ["to_plan_id"] CoreMerchant::SubscriptionPlan.find(id) if id end |
#to_plan=(value) ⇒ Object
112 113 114 |
# File 'lib/core_merchant/subscription_event.rb', line 112 def to_plan=(value) self. = .merge(to_plan_id: value.id) end |