Class: Fastbill::Automatic::Article

Inherits:
Base
  • Object
show all
Defined in:
lib/fastbill-automatic/article.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

#allow_multipleObject (readonly)

Returns the value of attribute allow_multiple.



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

def allow_multiple
  @allow_multiple
end

#article_numberObject (readonly)

Returns the value of attribute article_number.



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

def article_number
  @article_number
end

#checkout_urlObject (readonly)

Returns the value of attribute checkout_url.



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

def checkout_url
  @checkout_url
end

#currency_codeObject (readonly)

Returns the value of attribute currency_code.



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

def currency_code
  @currency_code
end

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#is_addonObject (readonly)

Returns the value of attribute is_addon.



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

def is_addon
  @is_addon
end

#return_url_cancelObject (readonly)

Returns the value of attribute return_url_cancel.



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

def return_url_cancel
  @return_url_cancel
end

#return_url_successObject (readonly)

Returns the value of attribute return_url_success.



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

def return_url_success
  @return_url_success
end

#setup_feeObject (readonly)

Returns the value of attribute setup_fee.



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

def setup_fee
  @setup_fee
end

#subscription_cancellationObject (readonly)

Returns the value of attribute subscription_cancellation.



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

def subscription_cancellation
  @subscription_cancellation
end

#subscription_durationObject (readonly)

Returns the value of attribute subscription_duration.



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

def subscription_duration
  @subscription_duration
end

#subscription_intervalObject (readonly)

Returns the value of attribute subscription_interval.



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

def subscription_interval
  @subscription_interval
end

#subscription_number_eventsObject (readonly)

Returns the value of attribute subscription_number_events.



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

def subscription_number_events
  @subscription_number_events
end

#subscription_trailObject (readonly)

Returns the value of attribute subscription_trail.



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

def subscription_trail
  @subscription_trail
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

#unit_priceObject (readonly)

Returns the value of attribute unit_price.



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

def unit_price
  @unit_price
end

#vat_percentObject (readonly)

Returns the value of attribute vat_percent.



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

def vat_percent
  @vat_percent
end

Class Method Details

.create(attributes) ⇒ Object

Raises:



9
10
11
# File 'lib/fastbill-automatic/article.rb', line 9

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