Class: Ccs::Commands::Copy
- Inherits:
-
Object
- Object
- Ccs::Commands::Copy
- Defined in:
- lib/ccs/commands/copy.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(source, destination, access_token, secret_token) ⇒ Copy
constructor
A new instance of Copy.
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
#call ⇒ Object
13 14 15 |
# File 'lib/ccs/commands/copy.rb', line 13 def call download? ? download : upload end |