Class: CoreMerchant::SubscriptionRenewalEvent
- Inherits:
-
SubscriptionEvent
- Object
- ActiveRecord::Base
- SubscriptionEvent
- CoreMerchant::SubscriptionRenewalEvent
- Defined in:
- lib/core_merchant/subscription_event.rb
Overview
Represents a renewal event for a subscription.
Instance Method Summary collapse
- #price_cents ⇒ Object
- #price_cents=(value) ⇒ Object
- #renewed_from ⇒ Object
- #renewed_from=(value) ⇒ Object
- #renewed_until ⇒ Object
- #renewed_until=(value) ⇒ Object
Methods inherited from SubscriptionEvent
Instance Method Details
#price_cents ⇒ Object
52 53 54 |
# File 'lib/core_merchant/subscription_event.rb', line 52 def price_cents ["price_cents"] end |
#price_cents=(value) ⇒ Object
56 57 58 |
# File 'lib/core_merchant/subscription_event.rb', line 56 def price_cents=(value) self. = .merge(price_cents: value) end |
#renewed_from ⇒ Object
60 61 62 |
# File 'lib/core_merchant/subscription_event.rb', line 60 def renewed_from ["renewed_from"].to_date end |
#renewed_from=(value) ⇒ Object
64 65 66 |
# File 'lib/core_merchant/subscription_event.rb', line 64 def renewed_from=(value) self. = .merge(renewed_from: value) end |
#renewed_until ⇒ Object
68 69 70 |
# File 'lib/core_merchant/subscription_event.rb', line 68 def renewed_until ["renewed_until"].to_date end |
#renewed_until=(value) ⇒ Object
72 73 74 |
# File 'lib/core_merchant/subscription_event.rb', line 72 def renewed_until=(value) self. = .merge(renewed_until: value) end |