Class: GovernorBackground::Delayed::Performer
- Inherits:
-
Struct
- Object
- Struct
- GovernorBackground::Delayed::Performer
- Defined in:
- lib/governor_background/delayed/performer.rb
Instance Attribute Summary collapse
-
#article ⇒ Object
Returns the value of attribute article.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
Instance Attribute Details
#article ⇒ Object
Returns the value of attribute article
3 4 5 |
# File 'lib/governor_background/delayed/performer.rb', line 3 def article @article end |
#method_name ⇒ Object
Returns the value of attribute method_name
3 4 5 |
# File 'lib/governor_background/delayed/performer.rb', line 3 def method_name @method_name end |
Instance Method Details
#error(job, exception) ⇒ Object
8 9 10 |
# File 'lib/governor_background/delayed/performer.rb', line 8 def error(job, exception) # handle failure end |
#perform ⇒ Object
4 5 6 |
# File 'lib/governor_background/delayed/performer.rb', line 4 def perform article.send(method_name) end |