Class: Fastbill::Automatic::Coupon

Inherits:
Base
  • Object
show all
Defined in:
lib/fastbill-automatic/coupon.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods inherited from Base

clear_request_infos, #initialize, request_infos, request_infos=, #set_attributes

Methods included from Services::Create

included

Methods included from Services::Get

included

Constructor Details

This class inherits a constructor from Fastbill::Automatic::Base

Instance Attribute Details

#assigned_articlesObject (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

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/fastbill-automatic/coupon.rb', line 5

def code
  @code
end

#discountObject (readonly)

Returns the value of attribute discount.



5
6
7
# File 'lib/fastbill-automatic/coupon.rb', line 5

def discount
  @discount
end

#discount_periodObject (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

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/fastbill-automatic/coupon.rb', line 5

def title
  @title
end

#valid_fromObject (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_toObject (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

Raises:



7
8
9
# File 'lib/fastbill-automatic/coupon.rb', line 7

def self.create(attributes)
  raise FastbillError.new('Create method not implemented.')
end