Exception: JsonapiCompliable::Errors::StatNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jsonapi_compliable/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(attribute, calculation) ⇒ StatNotFound

Returns a new instance of StatNotFound



17
18
19
20
# File 'lib/jsonapi_compliable/errors.rb', line 17

def initialize(attribute, calculation)
  @attribute = attribute
  @calculation = calculation
end

Instance Method Details

#messageObject



22
23
24
# File 'lib/jsonapi_compliable/errors.rb', line 22

def message
  "No stat configured for calculation #{pretty(@calculation)} on attribute #{pretty(@attribute)}"
end