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.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#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.
8 9 10 11 12 13 |
# File 'lib/coinone/public/currency.rb', line 8 def initialize(params={}) @result = params[:result] || nil @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.
6 7 8 |
# File 'lib/coinone/public/currency.rb', line 6 def currency @currency end |
#currency_type ⇒ Object (readonly)
Returns the value of attribute currency_type.
6 7 8 |
# File 'lib/coinone/public/currency.rb', line 6 def currency_type @currency_type end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/coinone/public/currency.rb', line 5 def result @result end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/coinone/public/currency.rb', line 6 def source @source end |