Class: RuBittrex::Address
- Inherits:
-
Object
- Object
- RuBittrex::Address
- Extended by:
- ClientHelper
- Defined in:
- lib/ru_bittrex/address.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(attrs = {}) ⇒ Address
Returns a new instance of Address.
7 8 9 10 11 12 |
# File 'lib/ru_bittrex/address.rb', line 7 def initialize(attrs = {}) @status = attrs["status"] @currency = attrs["currencySymbol"] @address = attrs["cryptoAddress"] @raw = attrs end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
5 6 7 |
# File 'lib/ru_bittrex/address.rb', line 5 def address @address end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
5 6 7 |
# File 'lib/ru_bittrex/address.rb', line 5 def currency @currency end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
5 6 7 |
# File 'lib/ru_bittrex/address.rb', line 5 def raw @raw end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/ru_bittrex/address.rb', line 5 def status @status end |
Class Method Details
.all(params = {}) ⇒ Object
14 15 16 |
# File 'lib/ru_bittrex/address.rb', line 14 def self.all(params = {}) collection _get('addresses', params) end |
.get(currency, params = {}) ⇒ Object
18 19 20 |
# File 'lib/ru_bittrex/address.rb', line 18 def self.get(currency, params = {}) new _get("addresses/#{currency}", params) end |