Class: Fugle::Intraday::Quote::Price Private
- Inherits:
-
Object
- Object
- Fugle::Intraday::Quote::Price
- 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
- #high ⇒ Object readonly private
- #low ⇒ Object readonly private
- #open ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(data) ⇒ Price
constructor
private
A new instance of Price.
Constructor Details
#initialize(data) ⇒ Price
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 Price.
57 58 59 60 61 |
# File 'lib/fugle/intraday/quote.rb', line 57 def initialize(data) @high = Trade.new(data['priceHigh']) @low = Trade.new(data['priceLow']) @open = Trade.new(data['priceOpen']) end |
Instance Attribute Details
#high ⇒ 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.
53 54 55 |
# File 'lib/fugle/intraday/quote.rb', line 53 def high @high end |
#low ⇒ 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.
53 54 55 |
# File 'lib/fugle/intraday/quote.rb', line 53 def low @low end |
#open ⇒ 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.
53 54 55 |
# File 'lib/fugle/intraday/quote.rb', line 53 def open @open end |