Class: Envoi::WatchFolderUtility::WatchFolder::Worker
- Inherits:
-
Object
- Object
- Envoi::WatchFolderUtility::WatchFolder::Worker
- Defined in:
- lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#last_poll_time ⇒ Object
Returns the value of attribute last_poll_time.
-
#name ⇒ Object
Returns the value of attribute name.
-
#previous_poll_time ⇒ Object
Returns the value of attribute previous_poll_time.
-
#state ⇒ Object
Returns the value of attribute state.
-
#watcher ⇒ Object
Returns the value of attribute watcher.
Instance Method Summary collapse
-
#initialize(definition, state = nil, client = nil) ⇒ Worker
constructor
A new instance of Worker.
Constructor Details
#initialize(definition, state = nil, client = nil) ⇒ Worker
Returns a new instance of Worker.
85 86 87 88 89 90 91 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 85 def initialize(definition, state = nil, client = nil) @definition = definition @state = state || State.new @client = @watcher = client || Client.new process_definition(definition) end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
82 83 84 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 82 def client @client end |
#definition ⇒ Object
Returns the value of attribute definition.
82 83 84 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 82 def definition @definition end |
#last_poll_time ⇒ Object
Returns the value of attribute last_poll_time.
82 83 84 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 82 def last_poll_time @last_poll_time end |
#name ⇒ Object
Returns the value of attribute name.
82 83 84 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 82 def name @name end |
#previous_poll_time ⇒ Object
Returns the value of attribute previous_poll_time.
82 83 84 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 82 def previous_poll_time @previous_poll_time end |
#state ⇒ Object
Returns the value of attribute state.
82 83 84 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 82 def state @state end |
#watcher ⇒ Object
Returns the value of attribute watcher.
82 83 84 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb', line 82 def watcher @watcher end |