Class: Fugle::Intraday::Chart Private

Inherits:
Object
  • Object
show all
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

Since:

  • 0.1.0

Defined Under Namespace

Classes: Item

Constant Summary

Constants included from HTTP::API

HTTP::API::ENDPOINT, HTTP::API::VERSION

Instance Method Summary collapse

Methods included from HTTP::API

included

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.

Since:

  • 0.1.0



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.

Since:

  • 0.1.0



28
29
30
# File 'lib/fugle/intraday/chart.rb', line 28

def each(&block)
  @items.each(&block)
end