Module: Shark::MailingService

Defined in:
lib/shark/mailing_service.rb,
lib/shark/mailing_service/base.rb,
lib/shark/mailing_service/mail.rb,
lib/shark/mailing_service/mailer.rb,
lib/shark/mailing_service/configuration.rb,
lib/shark/mailing_service/renderers/context.rb,
lib/shark/mailing_service/renderers/erb_renderer.rb

Defined Under Namespace

Modules: Mailers, Renderers Classes: Base, Configuration, Mail, Mailer

Class Method Summary collapse

Class Method Details

.configObject



18
19
20
# File 'lib/shark/mailing_service.rb', line 18

def config
  @config ||= Configuration.new
end

.use_shark_mailer {|config| ... } ⇒ Object

Yields:



9
10
11
12
13
14
15
16
# File 'lib/shark/mailing_service.rb', line 9

def use_shark_mailer
  require 'shark/mailing_service/configuration'
  require 'shark/mailing_service/renderers/context'
  require 'shark/mailing_service/renderers/erb_renderer'
  require 'shark/mailing_service/mailer'

  yield(config)
end