Module: SendGridMailer

Extended by:
SendGridMailer
Included in:
SendGridMailer
Defined in:
lib/send_grid_mailer.rb,
lib/send_grid_mailer/api.rb,
lib/send_grid_mailer/engine.rb,
lib/send_grid_mailer/errors.rb,
lib/send_grid_mailer/logger.rb,
lib/send_grid_mailer/version.rb,
lib/send_grid_mailer/deliverer.rb,
lib/send_grid_mailer/definition.rb,
lib/send_grid_mailer/dev_deliverer.rb,
lib/send_grid_mailer/interceptors_handler.rb,
lib/send_grid_mailer/interceptor/recipient_interceptor.rb

Defined Under Namespace

Modules: Interceptor, InterceptorsHandler, Logger Classes: Api, ApiError, Definition, Deliverer, DevDeliverer, Engine, Error, InvalidApiKey

Constant Summary collapse

VERSION =
"2.4.0"

Instance Method Summary collapse

Instance Method Details

#setup {|_self| ... } ⇒ Object

You can add, in this module, your own configuration options as in the example below…

attr_writer :my_option

def my_option

return "Default Value" unless @my_option
@my_option

end

Then, you can customize the default behaviour (typically in a Rails initializer) like this:

SendGridMailer.setup do |config|

config.root_url = "Another value"

end

Yields:

  • (_self)

Yield Parameters:



22
23
24
25
# File 'lib/send_grid_mailer.rb', line 22

def setup
  yield self
  require "send_grid_mailer"
end