Class: Coinone::Account::AccountInfo::FeeRates::FeeRate
- Inherits:
-
Object
- Object
- Coinone::Account::AccountInfo::FeeRates::FeeRate
- Defined in:
- lib/coinone/account/account_info/fee_rates/fee_rate.rb
Instance Attribute Summary collapse
-
#maker ⇒ Object
readonly
Returns the value of attribute maker.
-
#taker ⇒ Object
readonly
Returns the value of attribute taker.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ FeeRate
constructor
A new instance of FeeRate.
- #update_info(params = {}) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ FeeRate
Returns a new instance of FeeRate.
8 9 10 11 12 |
# File 'lib/coinone/account/account_info/fee_rates/fee_rate.rb', line 8 def initialize(params={}) @taker = nil @maker = nil update_info(params) end |
Instance Attribute Details
#maker ⇒ Object (readonly)
Returns the value of attribute maker.
6 7 8 |
# File 'lib/coinone/account/account_info/fee_rates/fee_rate.rb', line 6 def maker @maker end |
#taker ⇒ Object (readonly)
Returns the value of attribute taker.
6 7 8 |
# File 'lib/coinone/account/account_info/fee_rates/fee_rate.rb', line 6 def taker @taker end |
Instance Method Details
#update_info(params = {}) ⇒ Object
14 15 16 17 |
# File 'lib/coinone/account/account_info/fee_rates/fee_rate.rb', line 14 def update_info(params={}) @taker = params[:taker].to_f if params.has_key? :taker @maker = params[:maker].to_f if params.has_key? :maker end |