Class: Softlayer::Billing::Currency

Inherits:
Entity show all
Defined in:
lib/softlayer/billing/currency.rb,
lib/softlayer/billing/currency/exchange_rate.rb

Defined Under Namespace

Classes: ExchangeRate, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Billing_Currency'

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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/softlayer/billing/currency.rb', line 6

def id
  @id
end

#key_nameObject

Returns the value of attribute key_name.



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

def key_name
  @key_name
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Class Method Details

.get_all_objectsObject



10
11
12
# File 'lib/softlayer/billing/currency.rb', line 10

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Billing::Currency])
end

Instance Method Details

#get_objectObject



14
15
16
# File 'lib/softlayer/billing/currency.rb', line 14

def get_object
  request(:get_object, Softlayer::Billing::Currency)
end

#get_price(message) ⇒ Object

price format_options



20
21
22
# File 'lib/softlayer/billing/currency.rb', line 20

def get_price(message)
  request(:get_price, String, message)
end