Class: Bittrex::Withdrawl
- Inherits:
-
Object
- Object
- Bittrex::Withdrawl
- Defined in:
- lib/bittrex/withdrawl.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#authorized ⇒ Object
readonly
Returns the value of attribute authorized.
-
#canceled ⇒ Object
readonly
Returns the value of attribute canceled.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#executed_at ⇒ Object
readonly
Returns the value of attribute executed_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#invalid_address ⇒ Object
readonly
Returns the value of attribute invalid_address.
-
#pending ⇒ Object
readonly
Returns the value of attribute pending.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#transaction_cost ⇒ Object
readonly
Returns the value of attribute transaction_cost.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Withdrawl
constructor
A new instance of Withdrawl.
Constructor Details
#initialize(attrs = {}) ⇒ Withdrawl
Returns a new instance of Withdrawl.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bittrex/withdrawl.rb', line 7 def initialize(attrs = {}) @id = attrs['PaymentUuid'] @currency = attrs['Currency'] @quantity = attrs['Amount'] @address = attrs['Address'] @authorized = attrs['Authorized'] @pending = attrs['PendingPayment'] @canceled = attrs['Canceled'] @invalid_address = attrs['Canceled'] @transaction_cost = attrs['TxCost'] @transaction_id = attrs['TxId'] @executed_at = Time.parse(attrs['Opened']) end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def address @address end |
#authorized ⇒ Object (readonly)
Returns the value of attribute authorized.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def @authorized end |
#canceled ⇒ Object (readonly)
Returns the value of attribute canceled.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def canceled @canceled end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def currency @currency end |
#executed_at ⇒ Object (readonly)
Returns the value of attribute executed_at.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def executed_at @executed_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def id @id end |
#invalid_address ⇒ Object (readonly)
Returns the value of attribute invalid_address.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def invalid_address @invalid_address end |
#pending ⇒ Object (readonly)
Returns the value of attribute pending.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def pending @pending end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def quantity @quantity end |
#transaction_cost ⇒ Object (readonly)
Returns the value of attribute transaction_cost.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def transaction_cost @transaction_cost end |
#transaction_id ⇒ Object (readonly)
Returns the value of attribute transaction_id.
3 4 5 |
# File 'lib/bittrex/withdrawl.rb', line 3 def transaction_id @transaction_id end |
Class Method Details
.all ⇒ Object
21 22 23 |
# File 'lib/bittrex/withdrawl.rb', line 21 def self.all client.get('account/getwithdrawalhistory').map{|data| new(data) } end |