Exception: TimestampAPI::APIPathNotSet
- Inherits:
-
StandardError
- Object
- StandardError
- TimestampAPI::APIPathNotSet
- Defined in:
- lib/timestamp_api/errors.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass) ⇒ APIPathNotSet
constructor
A new instance of APIPathNotSet.
- #message ⇒ Object
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
#klass ⇒ Object (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
#message ⇒ Object
92 93 94 |
# File 'lib/timestamp_api/errors.rb', line 92 def "API path not defined in `#{klass}` model. Use `api_path` to define it." end |