Sha256: 937b5f45e98c7b6b93bf166104cf036aeea18685514286166d0fa2dde0aa3be5
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
module Trell class Client module Labels class << self def colors %i( blue green orange purple red yellow ) end end self.colors.each do |color| class_eval <<-RUBY def change_board_#{color}_label(board_id, options = {}) put "boards/\#{board_id}/labelNames/#{color}", options end RUBY end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
trell-0.0.4 | lib/trell/client/labels.rb |
trell-0.0.3 | lib/trell/client/labels.rb |
trell-0.0.2 | lib/trell/client/labels.rb |
trell-0.0.1 | lib/trell/client/labels.rb |