Class: Cryptoexchange::Models::MarketPair
- Inherits:
-
Object
- Object
- Cryptoexchange::Models::MarketPair
- Defined in:
- lib/cryptoexchange/models/market_pair.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#base_raw ⇒ Object
readonly
Returns the value of attribute base_raw.
-
#inst_id ⇒ Object
readonly
Returns the value of attribute inst_id.
-
#market ⇒ Object
Returns the value of attribute market.
-
#target ⇒ Object
Returns the value of attribute target.
-
#target_raw ⇒ Object
readonly
Returns the value of attribute 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.
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
#base ⇒ Object
Returns the value of attribute base.
4 5 6 |
# File 'lib/cryptoexchange/models/market_pair.rb', line 4 def base @base end |
#base_raw ⇒ Object (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_id ⇒ Object (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 |
#market ⇒ Object
Returns the value of attribute market.
4 5 6 |
# File 'lib/cryptoexchange/models/market_pair.rb', line 4 def market @market end |
#target ⇒ Object
Returns the value of attribute target.
4 5 6 |
# File 'lib/cryptoexchange/models/market_pair.rb', line 4 def target @target end |
#target_raw ⇒ Object (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 |