Method: AEMO::MSATS.msats_limits

Defined in:
lib/aemo/msats.rb

.msats_limits(options = {}) ⇒ Hash

MSATS Limits /MSATSLimits/PARTICIPANT_IDENTIFIER?transactionId=XXX

Returns:

  • (Hash)

    The report results from the MSATS Limits web service query

Since:

  • 0.1.0



79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/aemo/msats.rb', line 79

def msats_limits(options = {})
  query = {
    transactionId: transaction_id
  }
  response = get("/MSATSLimits/#{@participant_id}", basic_auth: @auth, headers: HEADERS, query:,
                                                    verify: (options[:verify_ssl] != false))
  if response.response.code == '200'
    response.parsed_response['aseXML']['Transactions']['Transaction']['ReportResponse']['ReportResults']
  else
    response
  end
end