class ConcourseObjects::Resources::SlackNotification::OutParams

Constants

DEFAULT_ALWAYS_NOTIFY
DEFAULT_SILENT

Public Class Methods

new(options = {}) { |this, options| ... } click to toggle source
Calls superclass method ConcourseObjects::Object::new
# File lib/concourse-objects/resources/slack-notification.rb, line 71
def initialize(options = {})
  super(options) do |this, options|
    raise KeyError, "#{self.class.inspect} requires one of (text, text_file, attachments, attachments_file)" unless (this.text? or this.text_file? or this.attachments? or this.attachments_file?)

    yield this, options if block_given?
  end
end