Exception: RubyOmx::MissingAccessKey

Inherits:
InvalidOption show all
Defined in:
lib/ruby_omx/exceptions.rb

Overview

Raised if the access key arguments are missing when establishing a connection.

Instance Method Summary collapse

Constructor Details

#initialize(missing_keys) ⇒ MissingAccessKey

Returns a new instance of MissingAccessKey.



37
38
39
40
# File 'lib/ruby_omx/exceptions.rb', line 37

def initialize(missing_keys)
  key_list = missing_keys.map {|key| key.to_s}.join(' and the ')
  super("You did not provide both required access keys. Please provide the #{key_list}.")
end