Class: BranchIOCLI::Command::Command
- Inherits:
-
Object
- Object
- BranchIOCLI::Command::Command
- Defined in:
- lib/branch_io_cli/command/command.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
command-specific configuration object.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #helper ⇒ Object
-
#initialize(options) ⇒ Command
constructor
A new instance of Command.
- #patch_helper ⇒ Object
- #run! ⇒ Object
Constructor Details
#initialize(options) ⇒ Command
Returns a new instance of Command.
7 8 9 |
# File 'lib/branch_io_cli/command/command.rb', line 7 def initialize() @options = end |
Instance Attribute Details
#config ⇒ Object (readonly)
command-specific configuration object
5 6 7 |
# File 'lib/branch_io_cli/command/command.rb', line 5 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/branch_io_cli/command/command.rb', line 4 def @options end |
Instance Method Details
#helper ⇒ Object
15 16 17 |
# File 'lib/branch_io_cli/command/command.rb', line 15 def helper Helper::BranchHelper end |
#patch_helper ⇒ Object
19 20 21 |
# File 'lib/branch_io_cli/command/command.rb', line 19 def patch_helper Helper::PatchHelper end |
#run! ⇒ Object
11 12 13 |
# File 'lib/branch_io_cli/command/command.rb', line 11 def run! # implemented by subclasses end |