Class: Coinone::Public::Currency
- Inherits:
-
Object
- Object
- Coinone::Public::Currency
- Defined in:
- lib/coinone/public/currency.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#currency_type ⇒ Object
readonly
Returns the value of attribute currency_type.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Currency
constructor
A new instance of Currency.
Constructor Details
#initialize(params = {}) ⇒ Currency
Returns a new instance of Currency.
7 8 9 10 11 |
# File 'lib/coinone/public/currency.rb', line 7 def initialize(params={}) @currency = params[:currency].to_f || nil @source = params[:source] || nil @currency_type = params[:currencyType] || nil end |
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
5 6 7 |
# File 'lib/coinone/public/currency.rb', line 5 def currency @currency end |
#currency_type ⇒ Object (readonly)
Returns the value of attribute currency_type.
5 6 7 |
# File 'lib/coinone/public/currency.rb', line 5 def currency_type @currency_type end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/coinone/public/currency.rb', line 5 def source @source end |