Class: Ccs::Application
- Inherits:
-
Object
- Object
- Ccs::Application
- Defined in:
- lib/ccs/application.rb
Instance Method Summary collapse
-
#initialize(source, destination, access_token, secret_token) ⇒ Application
constructor
A new instance of Application.
- #run ⇒ Object
Constructor Details
#initialize(source, destination, access_token, secret_token) ⇒ Application
Returns a new instance of Application.
5 6 7 8 9 10 |
# File 'lib/ccs/application.rb', line 5 def initialize(source, destination, access_token, secret_token) @source = source @destination = destination @access_token = access_token @secret_token = secret_token end |
Instance Method Details
#run ⇒ Object
12 13 14 |
# File 'lib/ccs/application.rb', line 12 def run download? ? download : upload end |