Class: Ccs::Commands::Copy

Inherits:
Object
  • Object
show all
Defined in:
lib/ccs/commands/copy.rb

Instance Method Summary collapse

Constructor Details

#initialize(source, destination, access_token, secret_token) ⇒ Copy

Returns a new instance of Copy.



6
7
8
9
10
11
# File 'lib/ccs/commands/copy.rb', line 6

def initialize(source, destination, access_token, secret_token)
  @source = source
  @destination = destination
  @access_token = access_token
  @secret_token = secret_token
end

Instance Method Details

#callObject



13
14
15
# File 'lib/ccs/commands/copy.rb', line 13

def call
  download? ? download : upload
end