Class: GeminiApi::Transfer
- Inherits:
-
Struct
- Object
- Struct
- GeminiApi::Transfer
- Defined in:
- lib/gemini_api/transfer.rb
Instance Attribute Summary collapse
-
#advance_eid ⇒ Object
Returns the value of attribute advance_eid.
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#eid ⇒ Object
Returns the value of attribute eid.
-
#fee_amount ⇒ Object
Returns the value of attribute fee_amount.
-
#fee_currency ⇒ Object
Returns the value of attribute fee_currency.
-
#method ⇒ Object
Returns the value of attribute method.
-
#output_idx ⇒ Object
Returns the value of attribute output_idx.
-
#purpose ⇒ Object
Returns the value of attribute purpose.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#status ⇒ Object
Returns the value of attribute status.
-
#timestampms ⇒ Object
Returns the value of attribute timestampms.
-
#tx_hash ⇒ Object
Returns the value of attribute tx_hash.
-
#type ⇒ Object
Returns the value of attribute type.
-
#withdrawal_id ⇒ Object
Returns the value of attribute withdrawal_id.
Class Method Summary collapse
Instance Attribute Details
#advance_eid ⇒ Object
Returns the value of attribute advance_eid
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def advance_eid @advance_eid end |
#amount ⇒ Object
Returns the value of attribute amount
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def amount @amount end |
#currency ⇒ Object
Returns the value of attribute currency
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def currency @currency end |
#destination ⇒ Object
Returns the value of attribute destination
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def destination @destination end |
#eid ⇒ Object
Returns the value of attribute eid
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def eid @eid end |
#fee_amount ⇒ Object
Returns the value of attribute fee_amount
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def fee_amount @fee_amount end |
#fee_currency ⇒ Object
Returns the value of attribute fee_currency
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def fee_currency @fee_currency end |
#method ⇒ Object
Returns the value of attribute method
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def method @method end |
#output_idx ⇒ Object
Returns the value of attribute output_idx
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def output_idx @output_idx end |
#purpose ⇒ Object
Returns the value of attribute purpose
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def purpose @purpose end |
#raw_data ⇒ Object
Returns the value of attribute raw_data
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def raw_data @raw_data end |
#status ⇒ Object
Returns the value of attribute status
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def status @status end |
#timestampms ⇒ Object
Returns the value of attribute timestampms
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def @timestampms end |
#tx_hash ⇒ Object
Returns the value of attribute tx_hash
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def tx_hash @tx_hash end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def type @type end |
#withdrawal_id ⇒ Object
Returns the value of attribute withdrawal_id
4 5 6 |
# File 'lib/gemini_api/transfer.rb', line 4 def withdrawal_id @withdrawal_id end |
Class Method Details
.build(raw_data) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/gemini_api/transfer.rb', line 23 def self.build(raw_data) new( type: raw_data['type'], status: raw_data['status'], timestampms: raw_data['timestampms'], eid: raw_data['eid'], advance_eid: raw_data['advanceEid'], currency: raw_data['currency'], amount: raw_data['amount'], fee_amount: raw_data['feeAmount'], fee_currency: raw_data['feeCurrency'], method: raw_data['method'], tx_hash: raw_data['txHash'], withdrawal_id: raw_data['withdrawalId'], output_idx: raw_data['outputIdx'], destination: raw_data['destination'], purpose: raw_data['purpose'], raw_data: raw_data ) end |