Exception: TimestampAPI::APIPathNotSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ APIPathNotSet

Returns a new instance of APIPathNotSet.



88
89
90
# File 'lib/timestamp_api/errors.rb', line 88

def initialize(klass)
  @klass = klass
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



86
87
88
# File 'lib/timestamp_api/errors.rb', line 86

def klass
  @klass
end

Instance Method Details

#messageObject



92
93
94
# File 'lib/timestamp_api/errors.rb', line 92

def message
  "API path not defined in `#{klass}` model. Use `api_path` to define it."
end