Method: AEMO::MSATS#initialize

Defined in:
lib/aemo/msats.rb

#initialize(options = {}) ⇒ MSATS

Instance Methods

Since:

  • 0.1.0

[View source]

273
274
275
276
277
278
279
# File 'lib/aemo/msats.rb', line 273

def initialize(options = {})
  @auth = { username: nil, password: nil }

  @auth[:username]  = options[:username]        if options[:username].is_a?(String)
  @auth[:password]  = options[:password]        if options[:password].is_a?(String)
  @participant_id   = options[:participant_id]  if options[:participant_id].is_a?(String)
end