Class: Fugle::Intraday::Chart Private
- Inherits:
-
Object
- Object
- Fugle::Intraday::Chart
- Includes:
- Enumerable, HTTP::API
- 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.
The Intraday Chart
Defined Under Namespace
Classes: Item
Constant Summary
Constants included from HTTP::API
HTTP::API::ENDPOINT, HTTP::API::VERSION
Instance Method Summary collapse
- #each(&block) ⇒ Object private
-
#initialize(data) ⇒ Chart
constructor
private
A new instance of Chart.
Methods included from HTTP::API
Constructor Details
#initialize(data) ⇒ Chart
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 Chart.
20 21 22 23 24 |
# File 'lib/fugle/intraday/chart.rb', line 20 def initialize(data) @items = data.map do |time, row| Item.new(row, time) end end |
Instance Method Details
#each(&block) ⇒ Object
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.
28 29 30 |
# File 'lib/fugle/intraday/chart.rb', line 28 def each(&block) @items.each(&block) end |