Class: Fugle::Intraday::Quote::Price Private

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

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Since:

  • 0.1.0



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

#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



53
54
55
# File 'lib/fugle/intraday/quote.rb', line 53

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



53
54
55
# File 'lib/fugle/intraday/quote.rb', line 53

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



53
54
55
# File 'lib/fugle/intraday/quote.rb', line 53

def open
  @open
end