ROM::Repository::ClassInterface#commands

Parsed documentation:
View on GitHub
Defines command methods on a root repository

@example
  class UserRepo < ROM::Repository[:users]
    commands :create, update: :by_pk, delete: :by_pk
  end

  # with custom command plugin
  class UserRepo < ROM::Repository[:users]
    commands :create, plugin: :my_command_plugin
  end

  # with custom mapper
  class UserRepo < ROM::Repository[:users]
    commands :create, mapper: :my_custom_mapper
  end

@param [Array<Symbol>] names A list of command names
@option :mapper [Symbol] An optional mapper identifier
@option :use [Symbol] An optional command plugin identifier

@return [Array<Symbol>] A list of defined command names

@api public
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.