Class: Cryptoexchange::Models::Chaoex::MarketPair
- Inherits:
-
MarketPair
- Object
- MarketPair
- Cryptoexchange::Models::Chaoex::MarketPair
- Defined in:
- lib/cryptoexchange/exchanges/chaoex/market.rb
Instance Attribute Summary collapse
-
#base_id ⇒ Object
Returns the value of attribute base_id.
-
#target_id ⇒ Object
Returns the value of attribute target_id.
Attributes inherited from MarketPair
#base, #base_raw, #inst_id, #market, #target, #target_raw
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ MarketPair
constructor
A new instance of MarketPair.
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_id ⇒ Object
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_id ⇒ Object
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 |