Class: Softlayer::Billing::Currency::ExchangeRate
- Defined in:
- lib/softlayer/billing/currency/exchange_rate.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Billing_Currency_ExchangeRate'
Instance Attribute Summary collapse
-
#effective_date ⇒ Object
Returns the value of attribute effective_date.
-
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
-
#funding_currency ⇒ Object
Returns the value of attribute funding_currency.
-
#id ⇒ Object
Returns the value of attribute id.
-
#local_currency ⇒ Object
Returns the value of attribute local_currency.
-
#rate ⇒ Object
Returns the value of attribute rate.
Class Method Summary collapse
- .get_currencies ⇒ Object
-
.get_exchange_rate(message) ⇒ Object
to from effective_date.
Instance Method Summary collapse
-
#get_all_currency_exchange_rates(message) ⇒ Object
string_date.
- #get_funding_currency ⇒ Object
- #get_local_currency ⇒ Object
- #get_object ⇒ Object
-
#get_price(message) ⇒ Object
price format_options.
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#effective_date ⇒ Object
Returns the value of attribute effective_date.
6 7 8 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 6 def effective_date @effective_date end |
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
7 8 9 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 7 def expiration_date @expiration_date end |
#funding_currency ⇒ Object
Returns the value of attribute funding_currency.
10 11 12 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 10 def funding_currency @funding_currency end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 8 def id @id end |
#local_currency ⇒ Object
Returns the value of attribute local_currency.
11 12 13 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 11 def local_currency @local_currency end |
#rate ⇒ Object
Returns the value of attribute rate.
9 10 11 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 9 def rate @rate end |
Class Method Details
.get_currencies ⇒ Object
18 19 20 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 18 def self.get_currencies request(:get_currencies, Array[Softlayer::Billing::Currency]) end |
.get_exchange_rate(message) ⇒ Object
to from effective_date
25 26 27 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 25 def self.get_exchange_rate() request(:get_exchange_rate, Softlayer::Billing::Currency::ExchangeRate, ) end |
Instance Method Details
#get_all_currency_exchange_rates(message) ⇒ Object
string_date
14 15 16 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 14 def get_all_currency_exchange_rates() request(:get_all_currency_exchange_rates, Array[Softlayer::Billing::Currency::ExchangeRate], ) end |
#get_funding_currency ⇒ Object
29 30 31 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 29 def get_funding_currency request(:get_funding_currency, Softlayer::Billing::Currency) end |
#get_local_currency ⇒ Object
33 34 35 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 33 def get_local_currency request(:get_local_currency, Softlayer::Billing::Currency) end |
#get_object ⇒ Object
37 38 39 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 37 def get_object request(:get_object, Softlayer::Billing::Currency::ExchangeRate) end |
#get_price(message) ⇒ Object
price format_options
43 44 45 |
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 43 def get_price() request(:get_price, String, ) end |