Class: Excoin::Market::Exchange::OrderDepthChart::DataPoint
- Inherits:
-
Object
- Object
- Excoin::Market::Exchange::OrderDepthChart::DataPoint
- Defined in:
- lib/exchange/order_depth_data.rb
Instance Attribute Summary collapse
-
#currency_amount ⇒ Object
readonly
Returns the value of attribute currency_amount.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(order_data) ⇒ DataPoint
constructor
A new instance of DataPoint.
Constructor Details
#initialize(order_data) ⇒ DataPoint
Returns a new instance of DataPoint.
4 5 6 |
# File 'lib/exchange/order_depth_data.rb', line 4 def initialize(order_data) update(order_data) end |
Instance Attribute Details
#currency_amount ⇒ Object (readonly)
Returns the value of attribute currency_amount.
2 3 4 |
# File 'lib/exchange/order_depth_data.rb', line 2 def currency_amount @currency_amount end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
2 3 4 |
# File 'lib/exchange/order_depth_data.rb', line 2 def price @price end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/exchange/order_depth_data.rb', line 2 def type @type end |