AutoApi.Capability.get_by_name

You're seeing just the function get_by_name, go back to AutoApi.Capability module for more information.

Specs

get_by_name(binary() | atom()) :: module() | nil

Returns a capability module by its name.

The name can be specified either as an atom or a string.

Returns nil if there is no capability with the given name.

Examples

iex> AutoApi.Capability.get_by_name("doors") AutoApi.DoorsCapability

iex> AutoApi.Capability.get_by_name(:wake_up) AutoApi.WakeUpCapability

iex> AutoApi.Capability.get_by_name("Nobody") nil