class ConcourseObjects::Resources::Email::OutParams

Constants

DEFAULT_DEBUG
DEFAULT_SEND_EMPTY_BODY

Public Class Methods

new(pptions = {}) { |this, options| ... } click to toggle source
Calls superclass method ConcourseObjects::Object::new
# File lib/concourse-objects/resources/email.rb, line 63
def initialize(pptions = {})
  super(options) do |this, options|
    raise KeyError, "#{self.class.inspect} requires one of (subject, subject_text)" unless (this.subject? or this.subject_text?)
    raise KeyError, "#{self.class.inspect} requires on of (body, body_text)" unless (this.body? or this.body_text?)

    yield this, options if block_given?
  end
end