Class: Paymill::Subscription
- Includes:
- Operations::Delete, Operations::Update
- Defined in:
- lib/paymill/subscription.rb
Instance Attribute Summary collapse
-
#cancel_at_period_end ⇒ Object
Returns the value of attribute cancel_at_period_end.
-
#canceled_at ⇒ Object
Returns the value of attribute canceled_at.
-
#client ⇒ Object
Returns the value of attribute client.
-
#id ⇒ Object
Returns the value of attribute id.
-
#livemode ⇒ Object
Returns the value of attribute livemode.
-
#next_capture_at ⇒ Object
Returns the value of attribute next_capture_at.
-
#offer ⇒ Object
Returns the value of attribute offer.
-
#payment ⇒ Object
Returns the value of attribute payment.
-
#trial_end ⇒ Object
Returns the value of attribute trial_end.
-
#trial_start ⇒ Object
Returns the value of attribute trial_start.
Attributes inherited from Base
Instance Method Summary collapse
-
#parse_timestamps ⇒ Object
Parses UNIX timestamps and creates Time objects.
Methods included from Operations::Update
Methods included from Operations::Delete
Methods inherited from Base
Methods included from Operations::Find
Methods included from Operations::Create
Methods included from Operations::All
Constructor Details
This class inherits a constructor from Paymill::Base
Instance Attribute Details
#cancel_at_period_end ⇒ Object
Returns the value of attribute cancel_at_period_end.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def cancel_at_period_end @cancel_at_period_end end |
#canceled_at ⇒ Object
Returns the value of attribute canceled_at.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def canceled_at @canceled_at end |
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def client @client end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def id @id end |
#livemode ⇒ Object
Returns the value of attribute livemode.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def livemode @livemode end |
#next_capture_at ⇒ Object
Returns the value of attribute next_capture_at.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def next_capture_at @next_capture_at end |
#offer ⇒ Object
Returns the value of attribute offer.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def offer @offer end |
#payment ⇒ Object
Returns the value of attribute payment.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def payment @payment end |
#trial_end ⇒ Object
Returns the value of attribute trial_end.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def trial_end @trial_end end |
#trial_start ⇒ Object
Returns the value of attribute trial_start.
6 7 8 |
# File 'lib/paymill/subscription.rb', line 6 def trial_start @trial_start end |
Instance Method Details
#parse_timestamps ⇒ Object
Parses UNIX timestamps and creates Time objects
10 11 12 13 14 15 16 |
# File 'lib/paymill/subscription.rb', line 10 def super @next_capture_at = Time.at(next_capture_at) if next_capture_at @canceled_at = Time.at(canceled_at) if canceled_at @trial_start = Time.at(trial_start) if trial_start @trial_end = Time.at(trial_end) if trial_end end |