Module: Resque::Mailer

Defined in:
lib/resque_mailer.rb,
lib/resque_mailer/version.rb,
lib/resque_mailer/serializers/pass_thru_serializer.rb,
lib/resque_mailer/serializers/active_record_serializer.rb

Defined Under Namespace

Modules: ClassMethods, Serializers Classes: MessageDecoy

Constant Summary

VERSION =
"2.3.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.argument_serializerObject

Returns the value of attribute argument_serializer



9
10
11
# File 'lib/resque_mailer.rb', line 9

def argument_serializer
  @argument_serializer
end

.current_envObject

Returns the value of attribute current_env



8
9
10
# File 'lib/resque_mailer.rb', line 8

def current_env
  @current_env
end

.default_queue_nameObject

Returns the value of attribute default_queue_name



8
9
10
# File 'lib/resque_mailer.rb', line 8

def default_queue_name
  @default_queue_name
end

.default_queue_targetObject

Returns the value of attribute default_queue_target



8
9
10
# File 'lib/resque_mailer.rb', line 8

def default_queue_target
  @default_queue_target
end

.error_handlerObject

Returns the value of attribute error_handler



8
9
10
# File 'lib/resque_mailer.rb', line 8

def error_handler
  @error_handler
end

.excluded_environmentsObject

Returns the value of attribute excluded_environments



10
11
12
# File 'lib/resque_mailer.rb', line 10

def excluded_environments
  @excluded_environments
end

.loggerObject

Returns the value of attribute logger



8
9
10
# File 'lib/resque_mailer.rb', line 8

def logger
  @logger
end

Class Method Details

.included(base) ⇒ Object



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

def included(base)
  base.extend(ClassMethods)
end

.prepare_message(klass, action, *args) ⇒ Object



16
17
18
19
20
# File 'lib/resque_mailer.rb', line 16

def prepare_message(klass, action, *args)
  msg = klass.send(:new)
  msg.process(action, *args)
  msg.message
end