Class: Troo::CreateCard
- Inherits:
-
Object
- Object
- Troo::CreateCard
- Defined in:
- lib/troo/actions/create_card.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(list, name = nil, description = nil) ⇒ CreateCard
constructor
A new instance of CreateCard.
- #perform ⇒ Object
Constructor Details
#initialize(list, name = nil, description = nil) ⇒ CreateCard
9 10 11 12 13 |
# File 'lib/troo/actions/create_card.rb', line 9 def initialize(list, name = nil, description = nil) @list = list @name = name @description = description end |
Class Method Details
.for(list, name = nil, description = nil) ⇒ Object
4 5 6 |
# File 'lib/troo/actions/create_card.rb', line 4 def for(list, name = nil, description = nil) new(list, name, description).perform end |
Instance Method Details
#perform ⇒ Object
15 16 17 |
# File 'lib/troo/actions/create_card.rb', line 15 def perform update_cards end |