Class: Fugle::Intraday::Quote::Order Private

Inherits:
Object
  • Object
show all
Defined in:
lib/fugle/intraday/quote.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Order

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Order.

Since:

  • 0.1.0



73
74
75
76
77
# File 'lib/fugle/intraday/quote.rb', line 73

def initialize(data)
  @update_at = DateTime.parse(data['at'])
  @best_bids = data['bestBids'].map { |item| Trade.new(item) }
  @best_asks = data['bestAsks'].map { |item| Trade.new(item) }
end

Instance Attribute Details

#best_asksObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



69
70
71
# File 'lib/fugle/intraday/quote.rb', line 69

def best_asks
  @best_asks
end

#best_bidsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



69
70
71
# File 'lib/fugle/intraday/quote.rb', line 69

def best_bids
  @best_bids
end

#update_atObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



69
70
71
# File 'lib/fugle/intraday/quote.rb', line 69

def update_at
  @update_at
end