Class: AcceptOn::Subscription
Instance Attribute Summary collapse
- #active ⇒ Object (also: #active?) readonly
- #email ⇒ Object readonly
- #id ⇒ Object readonly
Instance Method Summary collapse
-
#last_billed_at ⇒ Time
The time the subscription was last billed.
-
#plan ⇒ AcceptOn::Plan
The plan the subscription is connected to.
Methods inherited from Base
Constructor Details
This class inherits a constructor from AcceptOn::Base
Instance Attribute Details
#active ⇒ Object (readonly) Also known as: active?
8 9 10 |
# File 'lib/accepton/subscription.rb', line 8 def active @active end |
#email ⇒ Object (readonly)
8 9 10 |
# File 'lib/accepton/subscription.rb', line 8 def email @email end |
#id ⇒ Object (readonly)
8 9 10 |
# File 'lib/accepton/subscription.rb', line 8 def id @id end |
Instance Method Details
#last_billed_at ⇒ Time
The time the subscription was last billed
17 18 19 |
# File 'lib/accepton/subscription.rb', line 17 def last_billed_at Time.parse(@last_billed_at).utc unless @last_billed_at.nil? end |
#plan ⇒ AcceptOn::Plan
The plan the subscription is connected to
26 27 28 |
# File 'lib/accepton/subscription.rb', line 26 def plan AcceptOn::Plan.new(@plan) end |