Class: Kublog::DeliverComment

Inherits:
Object
  • Object
show all
Defined in:
app/jobs/kublog/deliver_comment.rb

Instance Method Summary collapse

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

#performObject



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