ash v0.1.3 Ash.Resource behaviour View Source
A resource is a static definition of an entity in your system.
Resource DSL documentation: Ash.Resource.DSL
:name- Required. The name of the resource, e.gpostsorauthors. This will typically be the pluralized form of the type:type- Required. The type of the resource, e.gpostorauthor. This is used throughout the system.
Note:
Do not call the functions on a resource, as in MyResource.type() as this is a private
API and can change at any time. Instead, use the Ash module, for example: Ash.type(MyResource)