Class: Cryptoexchange::Models::MarketPair

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptoexchange/models/market_pair.rb

Direct Known Subclasses

Bilaxy::MarketPair, Chaoex::MarketPair

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ MarketPair

Returns a new instance of MarketPair.



7
8
9
10
11
12
# File 'lib/cryptoexchange/models/market_pair.rb', line 7

def initialize(params = {})
  @base   = params[:base]
  @target = params[:target]
  @market = params[:market]
  @inst_id = params[:inst_id]
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



4
5
6
# File 'lib/cryptoexchange/models/market_pair.rb', line 4

def base
  @base
end

#base_rawObject (readonly)

Returns the value of attribute base_raw.



5
6
7
# File 'lib/cryptoexchange/models/market_pair.rb', line 5

def base_raw
  @base_raw
end

#inst_idObject (readonly)

Returns the value of attribute inst_id.



5
6
7
# File 'lib/cryptoexchange/models/market_pair.rb', line 5

def inst_id
  @inst_id
end

#marketObject

Returns the value of attribute market.



4
5
6
# File 'lib/cryptoexchange/models/market_pair.rb', line 4

def market
  @market
end

#targetObject

Returns the value of attribute target.



4
5
6
# File 'lib/cryptoexchange/models/market_pair.rb', line 4

def target
  @target
end

#target_rawObject (readonly)

Returns the value of attribute target_raw.



5
6
7
# File 'lib/cryptoexchange/models/market_pair.rb', line 5

def target_raw
  @target_raw
end