Class: Fugle::Intraday::Meta::Price Private

Inherits:
Object
  • Object
show all
Defined in:
lib/fugle/intraday/meta.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



63
64
65
66
67
68
# File 'lib/fugle/intraday/meta.rb', line 63

def initialize(data)
  @reference = data['priceReference']
  @high_limit = data['priceHighLimit']
  @low_limit = data['priceLowLimit']
  @currency = data['currency']
end

Instance Attribute Details

#currencyObject (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



59
60
61
# File 'lib/fugle/intraday/meta.rb', line 59

def currency
  @currency
end

#high_limitObject (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



59
60
61
# File 'lib/fugle/intraday/meta.rb', line 59

def high_limit
  @high_limit
end

#low_limitObject (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



59
60
61
# File 'lib/fugle/intraday/meta.rb', line 59

def low_limit
  @low_limit
end

#referenceObject (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



59
60
61
# File 'lib/fugle/intraday/meta.rb', line 59

def reference
  @reference
end