Exception: ServiceAuthenticator::KeyChain::KeyChainError::ServiceNotConfiguredError
- Inherits:
-
StandardError
- Object
- StandardError
- ServiceAuthenticator::KeyChain::KeyChainError::ServiceNotConfiguredError
- Defined in:
- lib/service_authenticator/key_chain/key_chain_error/service_not_configured_error.rb
Instance Method Summary collapse
-
#initialize(service = nil) ⇒ ServiceNotConfiguredError
constructor
A new instance of ServiceNotConfiguredError.
- #to_s ⇒ Object
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_s ⇒ Object
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 |