Class: Fugle::Intraday::Chart::Item Private

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

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Since:

  • 0.1.0



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

#closeObject (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.

Since:

  • 0.1.0



37
38
39
# File 'lib/fugle/intraday/chart.rb', line 37

def close
  @close
end

#highObject (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.

Since:

  • 0.1.0



37
38
39
# File 'lib/fugle/intraday/chart.rb', line 37

def high
  @high
end

#lowObject (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.

Since:

  • 0.1.0



37
38
39
# File 'lib/fugle/intraday/chart.rb', line 37

def low
  @low
end

#openObject (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.

Since:

  • 0.1.0



37
38
39
# File 'lib/fugle/intraday/chart.rb', line 37

def open
  @open
end

#timeObject (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.

Since:

  • 0.1.0



37
38
39
# File 'lib/fugle/intraday/chart.rb', line 37

def time
  @time
end

#unitObject (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.

Since:

  • 0.1.0



37
38
39
# File 'lib/fugle/intraday/chart.rb', line 37

def unit
  @unit
end

#volumeObject (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.

Since:

  • 0.1.0



37
38
39
# File 'lib/fugle/intraday/chart.rb', line 37

def volume
  @volume
end