Class: Paymill::Offer

Inherits:
Base
  • Object
show all
Includes:
Restful::Delete, Restful::Update
Defined in:
lib/paymill/models/offer.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#app_id, #created_at, #id, #updated_at

Instance Method Summary collapse

Methods included from Restful::Delete

#delete

Methods included from Restful::Update

#update

Methods inherited from Base

#initialize

Methods included from Restful::All

#all

Methods included from Restful::Find

#find

Methods included from Restful::Create

#create

Constructor Details

This class inherits a constructor from Paymill::Base

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



7
8
9
# File 'lib/paymill/models/offer.rb', line 7

def amount
  @amount
end

#currencyObject

Returns the value of attribute currency.



7
8
9
# File 'lib/paymill/models/offer.rb', line 7

def currency
  @currency
end

#intervalObject

Returns the value of attribute interval.



7
8
9
# File 'lib/paymill/models/offer.rb', line 7

def interval
  @interval
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/paymill/models/offer.rb', line 7

def name
  @name
end

#subscription_countObject (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_daysObject

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_subscriptionsObject



9
10
11
# File 'lib/paymill/models/offer.rb', line 9

def delete_with_subscriptions
  delete( remove_with_subscriptions: true )
end

#delete_without_subscriptionsObject



13
14
15
# File 'lib/paymill/models/offer.rb', line 13

def delete_without_subscriptions
  delete( remove_with_subscriptions: false )
end