Class: RuBittrex::Deposit
- Inherits:
-
Object
- Object
- RuBittrex::Deposit
- Extended by:
- ClientHelper
- Includes:
- Helpers
- Defined in:
- lib/ru_bittrex/deposit.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#address_tag ⇒ Object
readonly
Returns the value of attribute address_tag.
-
#completed_at ⇒ Object
readonly
Returns the value of attribute completed_at.
-
#confirmations ⇒ Object
readonly
Returns the value of attribute confirmations.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tx_id ⇒ Object
readonly
Returns the value of attribute tx_id.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Deposit
constructor
A new instance of Deposit.
Methods included from Helpers
Constructor Details
#initialize(attrs = {}) ⇒ Deposit
Returns a new instance of Deposit.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ru_bittrex/deposit.rb', line 10 def initialize(attrs = {}) @id = attrs["id"] @currency = attrs["currencySymbol"] @quantity = attrs["quantity"] @address = attrs["cryptoAddress"] @address_tag = attrs["cryptoAddressTag"] @tx_id = attrs["txId"] @confirmations = attrs["confirmations"] @updated_at = (attrs["updatedAt"]) @completed_at = (attrs["completedAt"]) @status = attrs["status"] @source = attrs["source"] @raw = attrs end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def address @address end |
#address_tag ⇒ Object (readonly)
Returns the value of attribute address_tag.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def address_tag @address_tag end |
#completed_at ⇒ Object (readonly)
Returns the value of attribute completed_at.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def completed_at @completed_at end |
#confirmations ⇒ Object (readonly)
Returns the value of attribute confirmations.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def confirmations @confirmations end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def currency @currency end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def id @id end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def quantity @quantity end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def raw @raw end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def source @source end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def status @status end |
#tx_id ⇒ Object (readonly)
Returns the value of attribute tx_id.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def tx_id @tx_id end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/ru_bittrex/deposit.rb', line 6 def updated_at @updated_at end |
Class Method Details
.closed(params = {}) ⇒ Object
25 26 27 |
# File 'lib/ru_bittrex/deposit.rb', line 25 def self.closed(params = {}) collection _get('deposits/closed', params) end |
.get(id, params = {}) ⇒ Object
33 34 35 |
# File 'lib/ru_bittrex/deposit.rb', line 33 def self.get(id, params = {}) new _get("deposits/#{id}", params) end |
.open(params = {}) ⇒ Object
29 30 31 |
# File 'lib/ru_bittrex/deposit.rb', line 29 def self.open(params = {}) collection _get('deposits/open', params) end |