Class: Buda::WithdrawalData
- Inherits:
-
Object
- Object
- Buda::WithdrawalData
- Defined in:
- lib/buda/resources/withdrawal_data.rb
Overview
for handling the total balance
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#fiat_account ⇒ Object
readonly
Returns the value of attribute fiat_account.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#statement_ref ⇒ Object
readonly
Returns the value of attribute statement_ref.
-
#target_address ⇒ Object
readonly
Returns the value of attribute target_address.
-
#tx_hash ⇒ Object
readonly
Returns the value of attribute tx_hash.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#update_at ⇒ Object
readonly
Returns the value of attribute update_at.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ WithdrawalData
constructor
A new instance of WithdrawalData.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(**kwargs) ⇒ WithdrawalData
Returns a new instance of WithdrawalData.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/buda/resources/withdrawal_data.rb', line 12 def initialize(**kwargs) @type = kwargs[:type] @id = kwargs[:id] @statement_ref = kwargs[:statement_ref] @created_at = kwargs[:created_at] @updated_at = kwargs[:updated_at] @target_address = kwargs[:target_address] @tx_hash = kwargs[:tx_hash] @fiat_account = FiatAccount.new(**kwargs[:fiat_account]) if kwargs[:fiat_account] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def created_at @created_at end |
#fiat_account ⇒ Object (readonly)
Returns the value of attribute fiat_account.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def fiat_account @fiat_account end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def id @id end |
#statement_ref ⇒ Object (readonly)
Returns the value of attribute statement_ref.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def statement_ref @statement_ref end |
#target_address ⇒ Object (readonly)
Returns the value of attribute target_address.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def target_address @target_address end |
#tx_hash ⇒ Object (readonly)
Returns the value of attribute tx_hash.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def tx_hash @tx_hash end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def type @type end |
#update_at ⇒ Object (readonly)
Returns the value of attribute update_at.
8 9 10 |
# File 'lib/buda/resources/withdrawal_data.rb', line 8 def update_at @update_at end |
Instance Method Details
#inspect ⇒ Object
27 28 29 |
# File 'lib/buda/resources/withdrawal_data.rb', line 27 def inspect "<WithdrawalData #{@type} (#{@created_at})>" end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/buda/resources/withdrawal_data.rb', line 23 def to_s "#{@type} (#{@created_at})" end |