Exception: ServiceAuthenticator::KeyChain::KeyChainError::ServiceNotConfiguredError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/service_authenticator/key_chain/key_chain_error/service_not_configured_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(service = nil) ⇒ ServiceNotConfiguredError

Returns a new instance of ServiceNotConfiguredError.



7
8
9
# File 'lib/service_authenticator/key_chain/key_chain_error/service_not_configured_error.rb', line 7

def initialize(service = nil)
  @service = service
end

Instance Method Details

#to_sObject



11
12
13
14
15
16
17
# File 'lib/service_authenticator/key_chain/key_chain_error/service_not_configured_error.rb', line 11

def to_s
  if @service
    "#{titleized_service} service key not configured"
  else
    "Service key not configured"
  end
end