Class: Peatio::Transaction

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/peatio/transaction.rb

Constant Summary collapse

STATUSES =
%i[success pending fail].freeze

Instance Attribute Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount


10
11
12
# File 'lib/peatio/transaction.rb', line 10

def amount
  @amount
end

#block_numberObject

Returns the value of attribute block_number


10
11
12
# File 'lib/peatio/transaction.rb', line 10

def block_number
  @block_number
end

#currency_idObject

Returns the value of attribute currency_id


10
11
12
# File 'lib/peatio/transaction.rb', line 10

def currency_id
  @currency_id
end

#hashObject

Returns the value of attribute hash


10
11
12
# File 'lib/peatio/transaction.rb', line 10

def hash
  @hash
end

#statusObject

TODO: rewrite this method


35
36
37
# File 'lib/peatio/transaction.rb', line 35

def status
  @status.to_sym
end

#to_addressObject

Returns the value of attribute to_address


10
11
12
# File 'lib/peatio/transaction.rb', line 10

def to_address
  @to_address
end

#txoutObject

Returns the value of attribute txout


10
11
12
# File 'lib/peatio/transaction.rb', line 10

def txout
  @txout
end