Method: AEMO::Market::Interval#value

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

#valueFloat

Returns the value of the interval in Australian Dollars.

Since:

  • 0.1.0



73
74
75
76
77
# File 'lib/aemo/market/interval.rb', line 73

def value
  @value ||= Float::NAN
  @value = (@total_demand * @rrp).round(2) if @total_demand.instance_of?(Float) && @rrp.instance_of?(Float)
  @value
end