Class: Troo::CreateComment
- Inherits:
-
Object
- Object
- Troo::CreateComment
- Defined in:
- lib/troo/actions/create_comment.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(card, comment) ⇒ CreateComment
constructor
A new instance of CreateComment.
- #perform ⇒ Object
Constructor Details
#initialize(card, comment) ⇒ CreateComment
Returns a new instance of CreateComment.
9 10 11 12 |
# File 'lib/troo/actions/create_comment.rb', line 9 def initialize(card, comment) @card = card @comment = comment end |
Class Method Details
.for(card, comment) ⇒ Object
4 5 6 |
# File 'lib/troo/actions/create_comment.rb', line 4 def for(card, comment) new(card, comment).perform end |
Instance Method Details
#perform ⇒ Object
14 15 16 |
# File 'lib/troo/actions/create_comment.rb', line 14 def perform update_comments end |