Class: RmsApiRuby::Authentication

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rms_api_ruby/authentication.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAuthentication

Returns a new instance of Authentication.



10
11
12
# File 'lib/rms_api_ruby/authentication.rb', line 10

def initialize
  @key = "ESA #{Base64.strict_encode64(service_secret + ':' + license_key)}"
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



8
9
10
# File 'lib/rms_api_ruby/authentication.rb', line 8

def key
  @key
end

Class Method Details

.keyObject



14
15
16
# File 'lib/rms_api_ruby/authentication.rb', line 14

def self.key
  instance.key
end