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