Class: Troo::Remote::Persistence::Comment
- Inherits:
-
Object
- Object
- Troo::Remote::Persistence::Comment
- Defined in:
- lib/troo/remote/persistence/comment.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(external_card_id, comment) ⇒ Object
constructor
[].
-
#perform ⇒ Object
[].
Constructor Details
#initialize(external_card_id, comment) ⇒ Object
Returns [].
17 18 19 20 |
# File 'lib/troo/remote/persistence/comment.rb', line 17 def initialize(external_card_id, comment) @external_card_id = external_card_id @comment = comment end |
Class Method Details
.with(external_card_id, comment) ⇒ Object
Returns [].
9 10 11 |
# File 'lib/troo/remote/persistence/comment.rb', line 9 def with(external_card_id, comment) new(external_card_id, comment).perform end |
Instance Method Details
#perform ⇒ Object
Returns [].
23 24 25 |
# File 'lib/troo/remote/persistence/comment.rb', line 23 def perform create_local end |