Class: Coinone::Account::FeeRate
- Inherits:
-
Object
- Object
- Coinone::Account::FeeRate
- Defined in:
- lib/coinone/account/fee_rate.rb,
lib/coinone/account/fee_rate/btc.rb,
lib/coinone/account/fee_rate/etc.rb,
lib/coinone/account/fee_rate/eth.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#btc ⇒ Object
readonly
Returns the value of attribute btc.
-
#etc ⇒ Object
readonly
Returns the value of attribute etc.
-
#eth ⇒ Object
readonly
Returns the value of attribute eth.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ FeeRate
constructor
A new instance of FeeRate.
- #update_info(params = {}) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ FeeRate
10 11 12 13 14 15 |
# File 'lib/coinone/account/fee_rate.rb', line 10 def initialize(params={}) @btc = Btc.new() @eth = Eth.new() @etc = Etc.new() update_info(params) end |
Instance Attribute Details
#btc ⇒ Object (readonly)
Returns the value of attribute btc.
8 9 10 |
# File 'lib/coinone/account/fee_rate.rb', line 8 def btc @btc end |
#etc ⇒ Object (readonly)
Returns the value of attribute etc.
8 9 10 |
# File 'lib/coinone/account/fee_rate.rb', line 8 def etc @etc end |
#eth ⇒ Object (readonly)
Returns the value of attribute eth.
8 9 10 |
# File 'lib/coinone/account/fee_rate.rb', line 8 def eth @eth end |
Instance Method Details
#update_info(params = {}) ⇒ Object
17 18 19 20 21 |
# File 'lib/coinone/account/fee_rate.rb', line 17 def update_info(params={}) @btc.update_info(params[:btc]) if params.has_key? :btc @eth.update_info(params[:eth]) if params.has_key? :eth @etc.update_info(params[:etc]) if params.has_key? :etc end |