Class: IGMarkets::HistoricalPriceResult::Snapshot
- Defined in:
- lib/ig_markets/historical_price_result.rb
Overview
Contains details on a single historical price snapshot. Used by #prices.
Defined Under Namespace
Classes: Price
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#close_price ⇒ Price
The close_price attribute.
-
#high_price ⇒ Price
The high_price attribute.
-
#last_traded_volume ⇒ Float
The last_traded_volume attribute.
-
#low_price ⇒ Price
The low_price attribute.
-
#open_price ⇒ Price
The open_price attribute.
-
#snapshot_time_utc ⇒ Time
The snapshot_time_utc attribute.
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
#close_price ⇒ Price
The close_price attribute.
34 |
# File 'lib/ig_markets/historical_price_result.rb', line 34 attribute :close_price, Price |
#high_price ⇒ Price
The high_price attribute.
35 |
# File 'lib/ig_markets/historical_price_result.rb', line 35 attribute :high_price, Price |
#last_traded_volume ⇒ Float
The last_traded_volume attribute.
36 |
# File 'lib/ig_markets/historical_price_result.rb', line 36 attribute :last_traded_volume, Float |
#low_price ⇒ Price
The low_price attribute.
37 |
# File 'lib/ig_markets/historical_price_result.rb', line 37 attribute :low_price, Price |
#open_price ⇒ Price
The open_price attribute.
38 |
# File 'lib/ig_markets/historical_price_result.rb', line 38 attribute :open_price, Price |
#snapshot_time_utc ⇒ Time
The snapshot_time_utc attribute.
39 |
# File 'lib/ig_markets/historical_price_result.rb', line 39 attribute :snapshot_time_utc, Time, format: '%FT%T' |