Module: MailCatcher::API

Defined in:
lib/mailcatcher/api.rb,
lib/mailcatcher/api/error.rb,
lib/mailcatcher/api/mailbox.rb,
lib/mailcatcher/api/version.rb,
lib/mailcatcher/api/configuration.rb,
lib/mailcatcher/api/mailbox/message.rb,
lib/mailcatcher/api/mailbox/message_collection.rb,
lib/mailcatcher/api/middleware/network_exceptions.rb

Defined Under Namespace

Modules: Error, Middleware Classes: Configuration, Mailbox

Constant Summary collapse

VERSION =
'0.0.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config


13
14
15
# File 'lib/mailcatcher/api.rb', line 13

def config
  @config
end

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:


24
25
26
# File 'lib/mailcatcher/api.rb', line 24

def self.configure
  yield(config)
end

.reset_configObject


20
21
22
# File 'lib/mailcatcher/api.rb', line 20

def self.reset_config
  @configuration = Configuration.new
end