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 collapse

VERSION =
"2.4.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.argument_serializerObject

Returns the value of attribute argument_serializer.



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

def argument_serializer
  @argument_serializer
end

.current_envObject

Returns the value of attribute current_env.



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

def current_env
  @current_env
end

.default_queue_nameObject

Returns the value of attribute default_queue_name.



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

def default_queue_name
  @default_queue_name
end

.default_queue_targetObject

Returns the value of attribute default_queue_target.



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

def default_queue_target
  @default_queue_target
end

.error_handlerObject

Returns the value of attribute error_handler.



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

def error_handler
  @error_handler
end

.excluded_environmentsObject

Returns the value of attribute excluded_environments.



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

def excluded_environments
  @excluded_environments
end

.loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

Class Method Details

.included(base) ⇒ Object



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

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

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



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

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