Class: ChargeBee::Currency

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/currency.rb

Instance Attribute Summary collapse

Class Method Summary collapse

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_codeObject

Returns the value of attribute currency_code.



4
5
6
# File 'lib/chargebee/models/currency.rb', line 4

def currency_code
  @currency_code
end

#enabledObject

Returns the value of attribute enabled.



4
5
6
# File 'lib/chargebee/models/currency.rb', line 4

def enabled
  @enabled
end

#forex_typeObject

Returns the value of attribute forex_type.



4
5
6
# File 'lib/chargebee/models/currency.rb', line 4

def forex_type
  @forex_type
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/chargebee/models/currency.rb', line 4

def id
  @id
end

#is_base_currencyObject

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_rateObject

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

.retrieve(id, env = nil, headers = {}) ⇒ Object



13
14
15
# File 'lib/chargebee/models/currency.rb', line 13

def self.retrieve(id, env=nil, headers={})
  Request.send('get', uri_path("currencies",id.to_s), {}, env, headers)
end

.update(id, params, env = nil, headers = {}) ⇒ Object



21
22
23
# File 'lib/chargebee/models/currency.rb', line 21

def self.update(id, params, env=nil, headers={})
  Request.send('post', uri_path("currencies",id.to_s), params, env, headers)
end