Class: Cryptoexchange::Models::Chaoex::MarketPair

Inherits:
MarketPair
  • Object
show all
Defined in:
lib/cryptoexchange/exchanges/chaoex/market.rb

Instance Attribute Summary collapse

Attributes inherited from MarketPair

#base, #base_raw, #inst_id, #market, #target, #target_raw

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ MarketPair

Returns a new instance of MarketPair.



16
17
18
19
20
# File 'lib/cryptoexchange/exchanges/chaoex/market.rb', line 16

def initialize(params = {})
  super
  @base_id   = params[:base_id]
  @target_id = params[:target_id]
end

Instance Attribute Details

#base_idObject

Returns the value of attribute base_id.



14
15
16
# File 'lib/cryptoexchange/exchanges/chaoex/market.rb', line 14

def base_id
  @base_id
end

#target_idObject

Returns the value of attribute target_id.



14
15
16
# File 'lib/cryptoexchange/exchanges/chaoex/market.rb', line 14

def target_id
  @target_id
end