Class: Excoin::Market::Exchange::OrderDepthChart::DataPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/exchange/order_depth_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_amountObject (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

#priceObject (readonly)

Returns the value of attribute price.



2
3
4
# File 'lib/exchange/order_depth_data.rb', line 2

def price
  @price
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'lib/exchange/order_depth_data.rb', line 2

def type
  @type
end