Class: GeminiApi::Transaction
- Inherits:
-
Struct
- Object
- Struct
- GeminiApi::Transaction
- Defined in:
- lib/gemini_api/transaction.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#withdrawal_id ⇒ Object
Returns the value of attribute withdrawal_id.
Class Method Summary collapse
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
4 5 6 |
# File 'lib/gemini_api/transaction.rb', line 4 def address @address end |
#amount ⇒ Object
Returns the value of attribute amount
4 5 6 |
# File 'lib/gemini_api/transaction.rb', line 4 def amount @amount end |
#raw_data ⇒ Object
Returns the value of attribute raw_data
4 5 6 |
# File 'lib/gemini_api/transaction.rb', line 4 def raw_data @raw_data end |
#withdrawal_id ⇒ Object
Returns the value of attribute withdrawal_id
4 5 6 |
# File 'lib/gemini_api/transaction.rb', line 4 def withdrawal_id @withdrawal_id end |
Class Method Details
.build(raw_data) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/gemini_api/transaction.rb', line 5 def self.build(raw_data) new( address: raw_data['address'], amount: raw_data['amount'].to_f, withdrawal_id: raw_data['withdrawalId'], raw_data: raw_data ) end |