class Coruro::MailcatcherAdapter::Configuration

Attributes

config[RW]

Public Class Methods

new(config) click to toggle source
# File lib/coruro/mailcatcher_adapter.rb, line 123
def initialize(config)
  self.config = config
end

Public Instance Methods

expose_stream?(stream) click to toggle source
# File lib/coruro/mailcatcher_adapter.rb, line 131
def expose_stream?(stream)
  !expose_streams[stream].nil?
end
expose_streams() click to toggle source
# File lib/coruro/mailcatcher_adapter.rb, line 135
def expose_streams
  config.fetch(:expose_streams, {})
end
http_root() click to toggle source
# File lib/coruro/mailcatcher_adapter.rb, line 127
def http_root
  config.fetch(:http_root, 'http://localhost:1080')
end