Class: Callstacking::Rails::Cli
- Inherits:
-
Object
- Object
- Callstacking::Rails::Cli
- Defined in:
- lib/callstacking/rails/cli.rb
Constant Summary collapse
- REGISTER =
'register'
- SETUP =
'setup'
- ENABLE =
'enable'
- DISABLE =
'disable'
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action, settings) ⇒ Cli
constructor
A new instance of Cli.
- #run ⇒ Object
Constructor Details
#initialize(action, settings) ⇒ Cli
Returns a new instance of Cli.
11 12 13 14 |
# File 'lib/callstacking/rails/cli.rb', line 11 def initialize(action, settings) @action = action @settings = settings end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
9 10 11 |
# File 'lib/callstacking/rails/cli.rb', line 9 def action @action end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
9 10 11 |
# File 'lib/callstacking/rails/cli.rb', line 9 def settings @settings end |
Class Method Details
.action(args) ⇒ Object
20 21 22 |
# File 'lib/callstacking/rails/cli.rb', line 20 def self.action(args) args[0]&.downcase&.strip end |
Instance Method Details
#run ⇒ Object
16 17 18 |
# File 'lib/callstacking/rails/cli.rb', line 16 def run end |