Exception: Compass::Search::UnknownProvider
- Inherits:
-
StandardError
- Object
- StandardError
- Compass::Search::UnknownProvider
- Defined in:
- lib/compass/search/provider.rb
Instance Attribute Summary collapse
-
#available_providers ⇒ Object
readonly
Returns the value of attribute available_providers.
-
#provider_name ⇒ Object
readonly
Returns the value of attribute provider_name.
Instance Method Summary collapse
-
#initialize(provider_name, available_providers) ⇒ UnknownProvider
constructor
A new instance of UnknownProvider.
Constructor Details
#initialize(provider_name, available_providers) ⇒ UnknownProvider
Returns a new instance of UnknownProvider.
6 7 8 9 10 |
# File 'lib/compass/search/provider.rb', line 6 def initialize(provider_name, available_providers) @provider_name = provider_name @available_providers = available_providers super("Provider '#{provider_name}' not found") end |
Instance Attribute Details
#available_providers ⇒ Object (readonly)
Returns the value of attribute available_providers.
4 5 6 |
# File 'lib/compass/search/provider.rb', line 4 def available_providers @available_providers end |
#provider_name ⇒ Object (readonly)
Returns the value of attribute provider_name.
4 5 6 |
# File 'lib/compass/search/provider.rb', line 4 def provider_name @provider_name end |