Class: TrelloPipes::CardsAfterAndIncludingListProducer

Inherits:
Object
  • Object
show all
Defined in:
lib/trello/producers/CardsAfterAndIncludingListProducer.rb

Instance Method Summary collapse

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