Class: BoxCli::CreateFolderCommand
- Inherits:
-
BoxCommand
- Object
- Command
- BoxCommand
- BoxCli::CreateFolderCommand
- Defined in:
- lib/box_cli/create_folder_command.rb
Constant Summary
Constants inherited from Command
BoxCli::Command::GLOBAL_OPTION_NAMES
Instance Attribute Summary
Attributes inherited from Command
#args, #global_options, #local_options
Instance Method Summary collapse
Methods inherited from BoxCommand
Methods inherited from Command
Constructor Details
This class inherits a constructor from BoxCli::BoxCommand
Instance Method Details
#call ⇒ Object
3 4 5 6 7 |
# File 'lib/box_cli/create_folder_command.rb', line 3 def call folder_name, = @args folder_id = wrapper.create_folder(folder_name) puts "Created folder '#{folder_name}' (id: #{folder_id})" end |