Class: RmsApiRuby::Authentication
- Inherits:
-
Object
- Object
- RmsApiRuby::Authentication
- Includes:
- Singleton
- Defined in:
- lib/rms_api_ruby/authentication.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Authentication
constructor
A new instance of Authentication.
Constructor Details
#initialize ⇒ Authentication
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
#key ⇒ Object (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
.key ⇒ Object
14 15 16 |
# File 'lib/rms_api_ruby/authentication.rb', line 14 def self.key instance.key end |