Class: IssueWorker Private
- Inherits:
-
Object
- Object
- IssueWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/issue_scheduler/server.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
My worker class that creates issues
Instance Method Summary collapse
-
#perform(template_name, time) ⇒ void
private
Create an issue with the given template name.
Instance Method Details
#perform(template_name, time) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Create an issue with the given template name
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/issue_scheduler/server.rb', line 50 def perform(template_name, time) puts "**** IssueWorker#perform called with #{template_name.pretty_inspect.chomp}, #{time.pretty_inspect.chomp}" template = load_issue_template(template_name) return unless template create_issue(template) puts '**** IssueWorker#perform finished' end |