Class: BackupClient::Processor
- Inherits:
-
Object
- Object
- BackupClient::Processor
- Includes:
- Helpers::LogHelper
- Defined in:
- lib/backup_client.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(config) ⇒ Processor
constructor
A new instance of Processor.
Methods included from Helpers::LogHelper
Constructor Details
#initialize(config) ⇒ Processor
25 26 27 28 |
# File 'lib/backup_client.rb', line 25 def initialize(config) @config = config @tasks = config["tasks"] end |
Instance Method Details
#call ⇒ Object
30 31 32 33 34 |
# File 'lib/backup_client.rb', line 30 def call return false if tasks.nil? tasks.each { |task| processing_task(task) } end |