class DigestNotifier::PerformableDigest

Attributes

args[RW]
digest_group[RW]
digest_resource[RW]
mailer[RW]
method_name[RW]
options[RW]

Public Class Methods

new(mailer, method_name, method_args, options) click to toggle source
# File lib/digest_notifier/performable_digest.rb, line 7
def initialize(mailer, method_name, method_args, options)
  #raise NoMethodError, "undefined method `#{method_name}' for #{mailer.inspect}" unless mailer.respond_to?(method_name, true)

  self.digest_resource = method_args.shift
  self.mailer          = mailer.to_s
  self.args            = method_args
  self.method_name     = method_name.to_sym
  self.options         = options
end

Public Instance Methods

payload() click to toggle source
# File lib/digest_notifier/performable_digest.rb, line 17
def payload
  args
end