Class: Softlayer::Billing::Currency::ExchangeRate

Inherits:
Entity
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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_dateObject

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_dateObject

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_currencyObject

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

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/billing/currency/exchange_rate.rb', line 8

def id
  @id
end

#local_currencyObject

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

#rateObject

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_currenciesObject



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(message)
  request(:get_exchange_rate, Softlayer::Billing::Currency::ExchangeRate, message)
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(message)
  request(:get_all_currency_exchange_rates, Array[Softlayer::Billing::Currency::ExchangeRate], message)
end

#get_funding_currencyObject



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_currencyObject



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_objectObject



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(message)
  request(:get_price, String, message)
end