Class: Btce::Types::Transaction
- Inherits:
-
Object
- Object
- Btce::Types::Transaction
- Defined in:
- lib/btce/types.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, data) ⇒ Transaction
constructor
from Response.return.
- #to_s ⇒ Object
Constructor Details
#initialize(id, data) ⇒ Transaction
from Response.return
86 87 88 89 90 |
# File 'lib/btce/types.rb', line 86 def initialize(id, data) # from Response.return @values = data @values[:id] = id @values.each { |name, value| instance_variable_set("@#{name}", value) } end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
84 85 86 |
# File 'lib/btce/types.rb', line 84 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
84 85 86 |
# File 'lib/btce/types.rb', line 84 def currency @currency end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
84 85 86 |
# File 'lib/btce/types.rb', line 84 def desc @desc end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
84 85 86 |
# File 'lib/btce/types.rb', line 84 def id @id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
84 85 86 |
# File 'lib/btce/types.rb', line 84 def status @status end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
84 85 86 |
# File 'lib/btce/types.rb', line 84 def @timestamp end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
84 85 86 |
# File 'lib/btce/types.rb', line 84 def type @type end |
Instance Method Details
#to_s ⇒ Object
92 93 94 |
# File 'lib/btce/types.rb', line 92 def to_s @values.to_s end |