Class: Paymill::Offer
- Includes:
- Restful::Delete, Restful::Update
- Defined in:
- lib/paymill/models/offer.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#name ⇒ Object
Returns the value of attribute name.
-
#subscription_count ⇒ Object
readonly
Returns the value of attribute subscription_count.
-
#trial_period_days ⇒ Object
Returns the value of attribute trial_period_days.
Attributes inherited from Base
#app_id, #created_at, #id, #updated_at
Instance Method Summary collapse
Methods included from Restful::Delete
Methods included from Restful::Update
Methods inherited from Base
Methods included from Restful::All
Methods included from Restful::Find
Methods included from Restful::Create
Constructor Details
This class inherits a constructor from Paymill::Base
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/paymill/models/offer.rb', line 7 def amount @amount end |
#currency ⇒ Object
Returns the value of attribute currency.
7 8 9 |
# File 'lib/paymill/models/offer.rb', line 7 def currency @currency end |
#interval ⇒ Object
Returns the value of attribute interval.
7 8 9 |
# File 'lib/paymill/models/offer.rb', line 7 def interval @interval end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/paymill/models/offer.rb', line 7 def name @name end |
#subscription_count ⇒ Object (readonly)
Returns the value of attribute subscription_count.
6 7 8 |
# File 'lib/paymill/models/offer.rb', line 6 def subscription_count @subscription_count end |
#trial_period_days ⇒ Object
Returns the value of attribute trial_period_days.
7 8 9 |
# File 'lib/paymill/models/offer.rb', line 7 def trial_period_days @trial_period_days end |
Instance Method Details
#delete_with_subscriptions ⇒ Object
9 10 11 |
# File 'lib/paymill/models/offer.rb', line 9 def delete_with_subscriptions delete( remove_with_subscriptions: true ) end |
#delete_without_subscriptions ⇒ Object
13 14 15 |
# File 'lib/paymill/models/offer.rb', line 13 def delete_without_subscriptions delete( remove_with_subscriptions: false ) end |