Exception: Sashimi::ClientNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Sashimi::ClientNotFound
- Defined in:
- lib/sashimi/repositories/abstract_repository.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(message = nil) ⇒ ClientNotFound
constructor
A new instance of ClientNotFound.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ ClientNotFound
Returns a new instance of ClientNotFound.
13 14 15 |
# File 'lib/sashimi/repositories/abstract_repository.rb', line 13 def initialize( = nil) @message = end |
Instance Method Details
#client ⇒ Object
17 18 19 |
# File 'lib/sashimi/repositories/abstract_repository.rb', line 17 def client self.class.name.demodulize.gsub(/NotFound/, '') end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/sashimi/repositories/abstract_repository.rb', line 21 def to_s @message || "#{client} wasn't installed or it isn't in your load path." end |