Class: Cryptoexchange::Models::Order
- Inherits:
-
Object
- Object
- Cryptoexchange::Models::Order
- Defined in:
- lib/cryptoexchange/models/order.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#price ⇒ Object
Returns the value of attribute price.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Order
constructor
A new instance of Order.
Constructor Details
#initialize(args = {}) ⇒ Order
Returns a new instance of Order.
6 7 8 9 10 |
# File 'lib/cryptoexchange/models/order.rb', line 6 def initialize(args={}) @price = args[:price] @amount = args[:amount] @timestamp = args[:timestamp] || nil end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/cryptoexchange/models/order.rb', line 4 def amount @amount end |
#price ⇒ Object
Returns the value of attribute price.
4 5 6 |
# File 'lib/cryptoexchange/models/order.rb', line 4 def price @price end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/cryptoexchange/models/order.rb', line 4 def @timestamp end |