Class: IGMarkets::HistoricalPriceResult::Snapshot::Price

Inherits:
Model
  • Object
show all
Defined in:
lib/ig_markets/historical_price_result.rb

Overview

Contains details on a single historical price.

Instance Attribute Summary

Attributes inherited from Model

#attributes

Instance Method Summary collapse

Methods inherited from Model

#==, allowed_values, attribute, attribute_type, attribute_value_allowed?, defined_attribute_names, deprecated_attribute, #initialize, #initialize_copy, #inspect, #to_h, valid_attribute?

Constructor Details

This class inherits a constructor from IGMarkets::Model

Instance Method Details

#askFloat

The ask attribute.

Returns:

  • (Float)

29
# File 'lib/ig_markets/historical_price_result.rb', line 29

attribute :ask, Float

#bidFloat

The bid attribute.

Returns:

  • (Float)

30
# File 'lib/ig_markets/historical_price_result.rb', line 30

attribute :bid, Float

#last_tradedFloat

The last_traded attribute.

Returns:

  • (Float)

31
# File 'lib/ig_markets/historical_price_result.rb', line 31

attribute :last_traded, Float