class Trello::Card

Public Instance Methods

in_done_column?() click to toggle source

Tells whether a card is in a list with a name starting with “DONE”

# File lib/patches/trello/card.rb, line 6
def in_done_column?
  list_name = ""
  begin
    list_name = list.name.strip
  rescue Trello::Error => e
    Trello.logger.error("Cannot find column for card #{name}")
  end

  !!(list_name =~ /^DONE/i)
end