Class: BoxCli::Command
- Inherits:
-
Object
- Object
- BoxCli::Command
- Defined in:
- lib/box_cli/command.rb
Direct Known Subclasses
Constant Summary collapse
- GLOBAL_OPTION_NAMES =
[:user, :password, :api_key]
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#global_options ⇒ Object
readonly
Returns the value of attribute global_options.
-
#local_options ⇒ Object
readonly
Returns the value of attribute local_options.
Instance Method Summary collapse
-
#initialize(options, args) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(options, args) ⇒ Command
Returns a new instance of Command.
10 11 12 |
# File 'lib/box_cli/command.rb', line 10 def initialize(, args) @options, @args = , args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/box_cli/command.rb', line 6 def args @args end |
#global_options ⇒ Object (readonly)
Returns the value of attribute global_options.
6 7 8 |
# File 'lib/box_cli/command.rb', line 6 def @global_options end |
#local_options ⇒ Object (readonly)
Returns the value of attribute local_options.
6 7 8 |
# File 'lib/box_cli/command.rb', line 6 def @local_options end |