Class: Peatio::Transaction
- Inherits:
-
Object
- Object
- Peatio::Transaction
- Includes:
- ActiveModel::Model
- Defined in:
- lib/peatio/transaction.rb
Constant Summary collapse
- STATUSES =
%i[success pending fail].freeze
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#block_number ⇒ Object
Returns the value of attribute block_number.
-
#currency_id ⇒ Object
Returns the value of attribute currency_id.
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#status ⇒ Object
TODO: rewrite this method.
-
#to_address ⇒ Object
Returns the value of attribute to_address.
-
#txout ⇒ Object
Returns the value of attribute txout.
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
10 11 12 |
# File 'lib/peatio/transaction.rb', line 10 def amount @amount end |
#block_number ⇒ Object
Returns the value of attribute block_number.
10 11 12 |
# File 'lib/peatio/transaction.rb', line 10 def block_number @block_number end |
#currency_id ⇒ Object
Returns the value of attribute currency_id.
10 11 12 |
# File 'lib/peatio/transaction.rb', line 10 def currency_id @currency_id end |
#hash ⇒ Object
Returns the value of attribute hash.
10 11 12 |
# File 'lib/peatio/transaction.rb', line 10 def hash @hash end |
#status ⇒ Object
TODO: rewrite this method
35 36 37 |
# File 'lib/peatio/transaction.rb', line 35 def status @status.to_sym end |
#to_address ⇒ Object
Returns the value of attribute to_address.
10 11 12 |
# File 'lib/peatio/transaction.rb', line 10 def to_address @to_address end |
#txout ⇒ Object
Returns the value of attribute txout.
10 11 12 |
# File 'lib/peatio/transaction.rb', line 10 def txout @txout end |