Class: Coinone::Account::FeeRate

Inherits:
Object
  • Object
show all
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

Classes: Btc, Etc, Eth

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#btcObject (readonly)

Returns the value of attribute btc.



8
9
10
# File 'lib/coinone/account/fee_rate.rb', line 8

def btc
  @btc
end

#etcObject (readonly)

Returns the value of attribute etc.



8
9
10
# File 'lib/coinone/account/fee_rate.rb', line 8

def etc
  @etc
end

#ethObject (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