Class: Hanami::Mailer::Delivery Private

Inherits:
Utils::BasicObject
Defined in:
lib/hanami/mailer/glue.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.5.0

Instance Method Summary collapse

Constructor Details

#initialize(env, &blk) ⇒ Delivery

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Delivery.

Since:

  • 0.5.0



9
10
11
12
# File 'lib/hanami/mailer/glue.rb', line 9

def initialize(env, &blk)
  @env = env
  instance_eval(&blk)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.5.0



30
31
32
# File 'lib/hanami/mailer/glue.rb', line 30

def method_missing(m, *args)
  __setup_config(m, *args)
end

Instance Method Details

#test(*args) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.5.0



22
23
24
# File 'lib/hanami/mailer/glue.rb', line 22

def test(*args)
  __setup_config(:test, *args)
end

#to_configObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.5.0



16
17
18
# File 'lib/hanami/mailer/glue.rb', line 16

def to_config
  @config
end