Class: TrelloPipes::CardsAfterAndIncludingListProducer
- Inherits:
-
Object
- Object
- TrelloPipes::CardsAfterAndIncludingListProducer
- Defined in:
- lib/trello/producers/CardsAfterAndIncludingListProducer.rb
Instance Method Summary collapse
-
#initialize(parameters) ⇒ CardsAfterAndIncludingListProducer
constructor
A new instance of CardsAfterAndIncludingListProducer.
- #produce(list_name) ⇒ Object
Constructor Details
#initialize(parameters) ⇒ CardsAfterAndIncludingListProducer
Returns a new instance of CardsAfterAndIncludingListProducer.
3 4 5 6 |
# File 'lib/trello/producers/CardsAfterAndIncludingListProducer.rb', line 3 def initialize(parameters) @successor = parameters[:successor] @trello_board = parameters[:trello_board] end |
Instance Method Details
#produce(list_name) ⇒ Object
8 9 10 11 12 |
# File 'lib/trello/producers/CardsAfterAndIncludingListProducer.rb', line 8 def produce(list_name) lists = get_lists_after_and_including(list_name) cards = all_cards_from(lists) @successor.push(cards) end |