Method: Kuroko2::Workflow::Notifier::Webhook#initialize
- Defined in:
- lib/autoload/kuroko2/workflow/notifier/webhook.rb
#initialize(instance) ⇒ Webhook
10 11 12 13 14 15 |
# File 'lib/autoload/kuroko2/workflow/notifier/webhook.rb', line 10 def initialize(instance) @instance = instance @definition = instance.job_definition = Workflow::Notifier::Concerns::ChatMessageBuilder.new(instance) @secret_token = Kuroko2.config.notifiers.webhook.try!(:secret_token) end |