struct Athena::Converters::Exists(T)
- Athena::Converters::Exists(T)
- Struct
- Value
- Object
Overview
Resolves a path param into type T.
Defined in:
converters.crConstructors
Class Method Summary
-
.convert(id : String) : T
Resolves an object of
Twith an id of id.
Instance Method Summary
Constructor Detail
Class Method Detail
def self.convert(id : String) : T
#
Resolves an object of T with an id of id.
Raises a NotFoundException if the find method returns nil.
NOTE Requires T implements a self.find(val : String) : self method that returns the corresponding record, or nil.