class ConcourseObjects::Resources::Email::Source::SMTP

Constants

DEFAULT_ANONYMOUS
DEFAULT_HOST_ORIGIN
DEFAULT_SKIP_SSL_VALIDATION

Public Class Methods

new(options = {}) { |this, options| ... } click to toggle source
Calls superclass method ConcourseObjects::Object::new
# File lib/concourse-objects/resources/email.rb, line 31
def initialize(options = {})
  super(options) do |this, options|
    raise KeyError, "#{self.class.inspect} requires (username, password) unless (anonymous) is true" unless this.anonymous

    yield this, options if block_given?
  end
end