Class: Fugle::Intraday::Quote::Order Private
- Inherits:
-
Object
- Object
- Fugle::Intraday::Quote::Order
- 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.
Instance Attribute Summary collapse
- #best_asks ⇒ Object readonly private
- #best_bids ⇒ Object readonly private
- #update_at ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(data) ⇒ Order
constructor
private
A new instance of Order.
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.
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_asks ⇒ Object (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.
69 70 71 |
# File 'lib/fugle/intraday/quote.rb', line 69 def best_asks @best_asks end |
#best_bids ⇒ Object (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.
69 70 71 |
# File 'lib/fugle/intraday/quote.rb', line 69 def best_bids @best_bids end |
#update_at ⇒ Object (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.
69 70 71 |
# File 'lib/fugle/intraday/quote.rb', line 69 def update_at @update_at end |