Class: AuxiliaryRails::Application::Command Abstract
- Inherits:
-
Object
- Object
- AuxiliaryRails::Application::Command
- Extended by:
- Dry::Initializer
- Includes:
- Concerns::Performable
- Defined in:
- lib/auxiliary_rails/application/command.rb
Overview
This class is abstract.
Instance Attribute Summary
Attributes included from Concerns::Performable
Class Method Summary collapse
- .call(*args, **kws) ⇒ self
-
.i18n_scope ⇒ Symbol
Defines ‘scope` for
ActiveModel::Translation
. -
.option(name, options = {}) ⇒ Object
Defines option using
Dry::Initializer
format. -
.param(name, options = {}) ⇒ Object
Defines param using
Dry::Initializer
format.
Instance Method Summary collapse
-
#arguments ⇒ Hash
protected
Shortcut reader for attributes defined by
Dry::Initializer
.
Methods included from Concerns::Performable
#call, #ensure_empty_errors!, #ensure_empty_status!, #ensure_execution!, #failure!, #failure?, #on, #perform, #status?, #success!, #success?, #transaction
Methods included from Concerns::Errorable
Methods included from Concerns::Callable
Class Method Details
.call(*args, **kws) ⇒ self
|
# File 'lib/auxiliary_rails/application/command.rb', line 31
|
.i18n_scope ⇒ Symbol
Defines ‘scope` for ActiveModel::Translation
38 39 40 |
# File 'lib/auxiliary_rails/application/command.rb', line 38 def i18n_scope :commands end |
.option(name, options = {}) ⇒ Object
Defines option using Dry::Initializer
format.
|
# File 'lib/auxiliary_rails/application/command.rb', line 22
|
.param(name, options = {}) ⇒ Object
Defines param using Dry::Initializer
format.
|
# File 'lib/auxiliary_rails/application/command.rb', line 13
|
Instance Method Details
#arguments ⇒ Hash (protected)
Shortcut reader for attributes defined by Dry::Initializer
48 49 50 |
# File 'lib/auxiliary_rails/application/command.rb', line 48 def arguments self.class.dry_initializer.attributes(self) end |