AshLua.Resource.Info (ash_lua v0.1.0)

Copy Markdown View Source

Introspection helpers for AshLua.Resource.

Summary

Functions

Whether the resource should be exposed to Lua. Defaults to true.

The Lua key (under the domain table) to expose this resource as.

Functions

expose?(resource)

@spec expose?(Ash.Resource.t() | Spark.Dsl.t()) :: boolean()

Whether the resource should be exposed to Lua. Defaults to true.

name(resource)

@spec name(Ash.Resource.t() | Spark.Dsl.t()) :: String.t()

The Lua key (under the domain table) to expose this resource as.

Falls back to snake_case of the resource module's last segment.