Class: Fastbill::Automatic::Coupon
- Defined in:
- lib/fastbill-automatic/coupon.rb
Instance Attribute Summary collapse
-
#assigned_articles ⇒ Object
readonly
Returns the value of attribute assigned_articles.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#discount ⇒ Object
readonly
Returns the value of attribute discount.
-
#discount_period ⇒ Object
readonly
Returns the value of attribute discount_period.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#valid_from ⇒ Object
readonly
Returns the value of attribute valid_from.
-
#valid_to ⇒ Object
readonly
Returns the value of attribute valid_to.
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
clear_request_infos, #initialize, request_infos, request_infos=, #set_attributes
Methods included from Services::Create
Methods included from Services::Get
Constructor Details
This class inherits a constructor from Fastbill::Automatic::Base
Instance Attribute Details
#assigned_articles ⇒ Object (readonly)
Returns the value of attribute assigned_articles.
5 6 7 |
# File 'lib/fastbill-automatic/coupon.rb', line 5 def assigned_articles @assigned_articles end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/fastbill-automatic/coupon.rb', line 5 def code @code end |
#discount ⇒ Object (readonly)
Returns the value of attribute discount.
5 6 7 |
# File 'lib/fastbill-automatic/coupon.rb', line 5 def discount @discount end |
#discount_period ⇒ Object (readonly)
Returns the value of attribute discount_period.
5 6 7 |
# File 'lib/fastbill-automatic/coupon.rb', line 5 def discount_period @discount_period end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/fastbill-automatic/coupon.rb', line 5 def title @title end |
#valid_from ⇒ Object (readonly)
Returns the value of attribute valid_from.
5 6 7 |
# File 'lib/fastbill-automatic/coupon.rb', line 5 def valid_from @valid_from end |
#valid_to ⇒ Object (readonly)
Returns the value of attribute valid_to.
5 6 7 |
# File 'lib/fastbill-automatic/coupon.rb', line 5 def valid_to @valid_to end |
Class Method Details
.create(attributes) ⇒ Object
7 8 9 |
# File 'lib/fastbill-automatic/coupon.rb', line 7 def self.create(attributes) raise FastbillError.new('Create method not implemented.') end |