class Eventioz::Auth
Used to authenticate against the Eventioz
API and get the API Key.
The Login and Password aren’t stored localy. They’re used only to authenticate Afterwards they’re discarded.
Every API call must have an API Key appended to it and an instance of this class is responsible to get this key.
Public Class Methods
Private Class Methods
validate_config(config)
click to toggle source
Just validates if the config object contains all required data.
# File lib/eventioz/auth.rb, line 27 def self.validate_config(config) raise 'Config cannot be null' if config.nil? raise 'User cannot be null' if config[:login].nil? raise 'Password cannot be null' if config[:password].nil? end