Class: Coinone::Public::CompleteOrders::CompleteOrder
- Inherits:
-
Object
- Object
- Coinone::Public::CompleteOrders::CompleteOrder
- Defined in:
- lib/coinone/public/complete_orders/complete_order.rb
Instance Attribute Summary collapse
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#qty ⇒ Object
readonly
Returns the value of attribute qty.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ CompleteOrder
constructor
A new instance of CompleteOrder.
Constructor Details
#initialize(params = {}) ⇒ CompleteOrder
Returns a new instance of CompleteOrder.
8 9 10 11 12 |
# File 'lib/coinone/public/complete_orders/complete_order.rb', line 8 def initialize(params={}) @price = params[:price].to_i || nil @qty = params[:qty].to_f || nil @timestamp = params[:timestamp].to_i || nil end |
Instance Attribute Details
#price ⇒ Object (readonly)
Returns the value of attribute price.
6 7 8 |
# File 'lib/coinone/public/complete_orders/complete_order.rb', line 6 def price @price end |
#qty ⇒ Object (readonly)
Returns the value of attribute qty.
6 7 8 |
# File 'lib/coinone/public/complete_orders/complete_order.rb', line 6 def qty @qty end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/coinone/public/complete_orders/complete_order.rb', line 6 def @timestamp end |