Class: ChargeBee::Currency
- Defined in:
- lib/chargebee/models/currency.rb
Instance Attribute Summary collapse
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#forex_type ⇒ Object
Returns the value of attribute forex_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_base_currency ⇒ Object
Returns the value of attribute is_base_currency.
-
#manual_exchange_rate ⇒ Object
Returns the value of attribute manual_exchange_rate.
Class Method Summary collapse
- .add_schedule(id, params, env = nil, headers = {}) ⇒ Object
- .create(params, env = nil, headers = {}) ⇒ Object
-
.list(env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .remove_schedule(id, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update(id, params, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #to_s, uri_path
Constructor Details
This class inherits a constructor from ChargeBee::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ChargeBee::Model
Instance Attribute Details
#currency_code ⇒ Object
Returns the value of attribute currency_code.
4 5 6 |
# File 'lib/chargebee/models/currency.rb', line 4 def currency_code @currency_code end |
#enabled ⇒ Object
Returns the value of attribute enabled.
4 5 6 |
# File 'lib/chargebee/models/currency.rb', line 4 def enabled @enabled end |
#forex_type ⇒ Object
Returns the value of attribute forex_type.
4 5 6 |
# File 'lib/chargebee/models/currency.rb', line 4 def forex_type @forex_type end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/currency.rb', line 4 def id @id end |
#is_base_currency ⇒ Object
Returns the value of attribute is_base_currency.
4 5 6 |
# File 'lib/chargebee/models/currency.rb', line 4 def is_base_currency @is_base_currency end |
#manual_exchange_rate ⇒ Object
Returns the value of attribute manual_exchange_rate.
4 5 6 |
# File 'lib/chargebee/models/currency.rb', line 4 def manual_exchange_rate @manual_exchange_rate end |
Class Method Details
.add_schedule(id, params, env = nil, headers = {}) ⇒ Object
25 26 27 |
# File 'lib/chargebee/models/currency.rb', line 25 def self.add_schedule(id, params, env=nil, headers={}) Request.send('post', uri_path("currencies",id.to_s,"add_schedule"), params, env, headers) end |
.create(params, env = nil, headers = {}) ⇒ Object
17 18 19 |
# File 'lib/chargebee/models/currency.rb', line 17 def self.create(params, env=nil, headers={}) Request.send('post', uri_path("currencies"), params, env, headers) end |
.list(env = nil, headers = {}) ⇒ Object
OPERATIONS
9 10 11 |
# File 'lib/chargebee/models/currency.rb', line 9 def self.list(env=nil, headers={}) Request.send_list_request('get', uri_path("currencies","list"), {}, env, headers) end |
.remove_schedule(id, env = nil, headers = {}) ⇒ Object
29 30 31 |
# File 'lib/chargebee/models/currency.rb', line 29 def self.remove_schedule(id, env=nil, headers={}) Request.send('post', uri_path("currencies",id.to_s,"remove_schedule"), {}, env, headers) end |