Class: Duracloud::Commands::GetStorageReport

Inherits:
Command
  • Object
show all
Defined in:
lib/duracloud/commands/get_storage_report.rb

Instance Method Summary collapse

Methods inherited from Command

call, #cli

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/duracloud/commands/get_storage_report.rb', line 4

def call
  delegate_to = if space_id
                  GetStorageReportForSpace
                elsif all_spaces
                  GetStorageReportForAllSpaces
                else
                  GetStorageReportForStore
                end
  delegate_to.call(cli)
end