Exception: JsonapiCompliable::Errors::StatNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- JsonapiCompliable::Errors::StatNotFound
- Defined in:
- lib/jsonapi_compliable/errors.rb
Instance Method Summary collapse
-
#initialize(attribute, calculation) ⇒ StatNotFound
constructor
A new instance of StatNotFound.
- #message ⇒ Object
Constructor Details
#initialize(attribute, calculation) ⇒ StatNotFound
Returns a new instance of StatNotFound
28 29 30 31 |
# File 'lib/jsonapi_compliable/errors.rb', line 28 def initialize(attribute, calculation) @attribute = attribute @calculation = calculation end |
Instance Method Details
#message ⇒ Object
33 34 35 |
# File 'lib/jsonapi_compliable/errors.rb', line 33 def "No stat configured for calculation #{pretty(@calculation)} on attribute #{pretty(@attribute)}" end |