Method: AEMO::Market::Interval#value
- Defined in:
- lib/aemo/market/interval.rb
#value ⇒ Float
Returns the value of the interval in Australian Dollars.
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 |