Method: AEMO::Market.current_dispatch

Defined in:
lib/aemo/market.rb

.current_dispatch(region) ⇒ Array<AEMO::Market::Interval>

Return the current dispatch dataset for a region

Parameters:

Returns:

Since:

  • 0.1.0



20
21
22
23
24
25
# File 'lib/aemo/market.rb', line 20

def current_dispatch(region)
  region = AEMO::Region.new(region) if region.is_a?(String)

  response = get "/mms.GRAPHS/GRAPHS/GRAPH_5#{region}1.csv"
  parse_response(response)
end