Class: Kublog::DeliverComment
- Inherits:
-
Object
- Object
- Kublog::DeliverComment
- Defined in:
- app/jobs/kublog/deliver_comment.rb
Instance Method Summary collapse
-
#initialize(comment_id) ⇒ DeliverComment
constructor
A new instance of DeliverComment.
- #perform ⇒ Object
Constructor Details
#initialize(comment_id) ⇒ DeliverComment
Returns a new instance of DeliverComment.
4 5 6 |
# File 'app/jobs/kublog/deliver_comment.rb', line 4 def initialize(comment_id) @comment_id = comment_id end |
Instance Method Details
#perform ⇒ Object
8 9 10 11 |
# File 'app/jobs/kublog/deliver_comment.rb', line 8 def perform comment = Comment.find(@comment_id) CommentMailer.new_comment(comment).deliver end |