Class: DigestNotifier::PerformableDigest
- Inherits:
-
Object
- Object
- DigestNotifier::PerformableDigest
- Defined in:
- lib/digest_notifier/performable_digest.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#digest_group ⇒ Object
Returns the value of attribute digest_group.
-
#mailer ⇒ Object
Returns the value of attribute mailer.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(mailer, method_name, method_args, options) ⇒ PerformableDigest
constructor
A new instance of PerformableDigest.
- #payload ⇒ Object
Constructor Details
#initialize(mailer, method_name, method_args, options) ⇒ PerformableDigest
Returns a new instance of PerformableDigest.
7 8 9 10 11 12 13 14 |
# File 'lib/digest_notifier/performable_digest.rb', line 7 def initialize(mailer, method_name, method_args, ) #raise NoMethodError, "undefined method `#{method_name}' for #{mailer.inspect}" unless mailer.respond_to?(method_name, true) self.mailer = mailer.to_s self.args = method_args self.method_name = method_name.to_sym self. = end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
3 4 5 |
# File 'lib/digest_notifier/performable_digest.rb', line 3 def args @args end |
#digest_group ⇒ Object
Returns the value of attribute digest_group.
3 4 5 |
# File 'lib/digest_notifier/performable_digest.rb', line 3 def digest_group @digest_group end |
#mailer ⇒ Object
Returns the value of attribute mailer.
3 4 5 |
# File 'lib/digest_notifier/performable_digest.rb', line 3 def mailer @mailer end |
#method_name ⇒ Object
Returns the value of attribute method_name.
3 4 5 |
# File 'lib/digest_notifier/performable_digest.rb', line 3 def method_name @method_name end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/digest_notifier/performable_digest.rb', line 3 def end |
Instance Method Details
#payload ⇒ Object
16 17 18 |
# File 'lib/digest_notifier/performable_digest.rb', line 16 def payload args end |