Method: AEMO::Market::Interval#initialize

Defined in:
lib/aemo/market/interval.rb

#initialize(datetime, options = {}) ⇒ AEMO::Market::Interval

Create a new instance of an Interval

Since:

  • 0.1.0



24
25
26
27
28
29
30
# File 'lib/aemo/market/interval.rb', line 24

def initialize(datetime, options = {})
  @datetime     = ::Time.parse("#{datetime} +1000")
  @region       = options['REGION']
  @total_demand = options['TOTALDEMAND']
  @rrp          = options['RRP']
  @period_type  = options['PERIODTYPE']
end