Exception: DataProvider::ProviderMissingException
- Inherits:
-
Exception
- Object
- Exception
- DataProvider::ProviderMissingException
- Defined in:
- lib/data_provider/container.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(_params = {}) ⇒ ProviderMissingException
constructor
A new instance of ProviderMissingException.
- #provider_id ⇒ Object
Constructor Details
#initialize(_params = {}) ⇒ ProviderMissingException
6 7 8 9 |
# File 'lib/data_provider/container.rb', line 6 def initialize(_params = {}) @params = _params || {} super(params[:message] || "Tried to take data from missing provider: #{provider_id.inspect}") end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/data_provider/container.rb', line 4 def params @params end |
Instance Method Details
#provider_id ⇒ Object
11 12 13 |
# File 'lib/data_provider/container.rb', line 11 def provider_id params[:provider_id] end |