Class: Fugle::Intraday::Chart::Item Private
- Inherits:
-
Object
- Object
- Fugle::Intraday::Chart::Item
- Defined in:
- lib/fugle/intraday/chart.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
- #close ⇒ Object readonly private
- #high ⇒ Object readonly private
- #low ⇒ Object readonly private
- #open ⇒ Object readonly private
- #time ⇒ Object readonly private
- #unit ⇒ Object readonly private
- #volume ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(attributes, time) ⇒ Item
constructor
private
A new instance of Item.
Constructor Details
#initialize(attributes, time) ⇒ Item
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 Item.
41 42 43 44 45 46 |
# File 'lib/fugle/intraday/chart.rb', line 41 def initialize(attributes, time) @time = DateTime.parse(time) attributes.each do |name, value| instance_variable_set("@#{name}", value) end end |
Instance Attribute Details
#close ⇒ 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.
37 38 39 |
# File 'lib/fugle/intraday/chart.rb', line 37 def close @close end |
#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.
37 38 39 |
# File 'lib/fugle/intraday/chart.rb', line 37 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.
37 38 39 |
# File 'lib/fugle/intraday/chart.rb', line 37 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.
37 38 39 |
# File 'lib/fugle/intraday/chart.rb', line 37 def open @open end |
#time ⇒ 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.
37 38 39 |
# File 'lib/fugle/intraday/chart.rb', line 37 def time @time end |
#unit ⇒ 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.
37 38 39 |
# File 'lib/fugle/intraday/chart.rb', line 37 def unit @unit end |
#volume ⇒ 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.
37 38 39 |
# File 'lib/fugle/intraday/chart.rb', line 37 def volume @volume end |