Class: GeminiApi::Transfer

Inherits:
Struct
  • Object
show all
Defined in:
lib/gemini_api/transfer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#advance_eidObject

Returns the value of attribute advance_eid

Returns:

  • (Object)

    the current value of advance_eid



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def advance_eid
  @advance_eid
end

#amountObject

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def amount
  @amount
end

#currencyObject

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def currency
  @currency
end

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def destination
  @destination
end

#eidObject

Returns the value of attribute eid

Returns:

  • (Object)

    the current value of eid



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def eid
  @eid
end

#fee_amountObject

Returns the value of attribute fee_amount

Returns:

  • (Object)

    the current value of fee_amount



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def fee_amount
  @fee_amount
end

#fee_currencyObject

Returns the value of attribute fee_currency

Returns:

  • (Object)

    the current value of fee_currency



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def fee_currency
  @fee_currency
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def method
  @method
end

#output_idxObject

Returns the value of attribute output_idx

Returns:

  • (Object)

    the current value of output_idx



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def output_idx
  @output_idx
end

#purposeObject

Returns the value of attribute purpose

Returns:

  • (Object)

    the current value of purpose



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def purpose
  @purpose
end

#raw_dataObject

Returns the value of attribute raw_data

Returns:

  • (Object)

    the current value of raw_data



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def raw_data
  @raw_data
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def status
  @status
end

#timestampmsObject

Returns the value of attribute timestampms

Returns:

  • (Object)

    the current value of timestampms



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def timestampms
  @timestampms
end

#tx_hashObject

Returns the value of attribute tx_hash

Returns:

  • (Object)

    the current value of tx_hash



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def tx_hash
  @tx_hash
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/gemini_api/transfer.rb', line 4

def type
  @type
end

#withdrawal_idObject

Returns the value of attribute withdrawal_id

Returns:

  • (Object)

    the current value of 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