Method: AEMO::MSATS.authorize

Defined in:
lib/aemo/msats.rb

.authorize(participant_id, username, password) ⇒ Hash

Sets the authentication credentials in a class variable.

Parameters:

  • email (String)

    cl.ly email

  • password (String)

    cl.ly password

Returns:

  • (Hash)

    authentication credentials

Since:

  • 0.1.0

[View source]

252
253
254
255
# File 'lib/aemo/msats.rb', line 252

def authorize(participant_id, username, password)
  @participant_id  = participant_id
  @auth            = { username:, password: }
end