Class: Coinone::Account::AccountInfo::FeeRates::FeeRate

Inherits:
Object
  • Object
show all
Defined in:
lib/coinone/account/account_info/fee_rates/fee_rate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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