Class: RuBittrex::Market
- Inherits:
-
Object
- Object
- RuBittrex::Market
- Extended by:
- ClientHelper
- Includes:
- Helpers
- Defined in:
- lib/ru_bittrex/market.rb
Instance Attribute Summary collapse
-
#base_currency ⇒ Object
readonly
Returns the value of attribute base_currency.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#min_trade ⇒ Object
readonly
Returns the value of attribute min_trade.
-
#notice ⇒ Object
readonly
Returns the value of attribute notice.
-
#precision ⇒ Object
readonly
Returns the value of attribute precision.
-
#prohibited_in ⇒ Object
readonly
Returns the value of attribute prohibited_in.
-
#quote_currency ⇒ Object
readonly
Returns the value of attribute quote_currency.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
-
#terms_of_service ⇒ Object
(also: #terms)
readonly
Returns the value of attribute terms_of_service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Market
constructor
A new instance of Market.
Methods included from Helpers
Constructor Details
#initialize(attrs = {}) ⇒ Market
Returns a new instance of Market.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ru_bittrex/market.rb', line 10 def initialize(attrs = {}) @symbol = attrs["symbol"] @base_currency = attrs["baseCurrencySymbol"] @quote_currency = attrs["quoteCurrencySymbol"] @min_trade = attrs["minTradeSize"] @precision = attrs["precision"] @status = attrs["status"] @created_at = (attrs["createdAt"]) @notice = attrs["notice"] @prohibited_in = attrs["prohibitedIn"] @terms_of_service = attrs["associatedTermsOfService"] @raw = attrs end |
Instance Attribute Details
#base_currency ⇒ Object (readonly)
Returns the value of attribute base_currency.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def base_currency @base_currency end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def created_at @created_at end |
#min_trade ⇒ Object (readonly)
Returns the value of attribute min_trade.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def min_trade @min_trade end |
#notice ⇒ Object (readonly)
Returns the value of attribute notice.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def notice @notice end |
#precision ⇒ Object (readonly)
Returns the value of attribute precision.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def precision @precision end |
#prohibited_in ⇒ Object (readonly)
Returns the value of attribute prohibited_in.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def prohibited_in @prohibited_in end |
#quote_currency ⇒ Object (readonly)
Returns the value of attribute quote_currency.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def quote_currency @quote_currency end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def raw @raw end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def status @status end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def symbol @symbol end |
#terms_of_service ⇒ Object (readonly) Also known as: terms
Returns the value of attribute terms_of_service.
6 7 8 |
# File 'lib/ru_bittrex/market.rb', line 6 def terms_of_service @terms_of_service end |
Class Method Details
.all(params = {}) ⇒ Object
24 25 26 |
# File 'lib/ru_bittrex/market.rb', line 24 def self.all(params = {}) collection _get('markets', params) end |
.get(market, params = {}) ⇒ Object
28 29 30 |
# File 'lib/ru_bittrex/market.rb', line 28 def self.get(market, params = {}) new _get("markets/#{market}", params) end |