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



28
29
30
31
# File 'lib/jsonapi_compliable/errors.rb', line 28

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

Instance Method Details

#messageObject



33
34
35
# File 'lib/jsonapi_compliable/errors.rb', line 33

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