Class: BoxCli::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/box_cli/command.rb

Direct Known Subclasses

BoxCommand, SettingsCommand

Constant Summary collapse

GLOBAL_OPTION_NAMES =
[:user, :password, :api_key]

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options, args)
  @options, @args = options, args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



6
7
8
# File 'lib/box_cli/command.rb', line 6

def args
  @args
end

#global_optionsObject (readonly)

Returns the value of attribute global_options.



6
7
8
# File 'lib/box_cli/command.rb', line 6

def global_options
  @global_options
end

#local_optionsObject (readonly)

Returns the value of attribute local_options.



6
7
8
# File 'lib/box_cli/command.rb', line 6

def local_options
  @local_options
end