class Trello::LabelName
A colored Label
attached to a card
Public Instance Methods
update_fields(fields)
click to toggle source
Update the fields of a label.
Supply a hash of stringkeyed data retrieved from the Trello
API representing a label.
# File lib/trello/label_name.rb, line 11 def update_fields(fields) attributes[:yellow] = fields['yellow'] || attributes[:yellow] attributes[:red] = fields['red'] || attributes[:red] attributes[:orange] = fields['orange'] || attributes[:orange] attributes[:green] = fields['green'] || attributes[:green] attributes[:purple] = fields['purple'] || attributes[:purple] attributes[:blue] = fields['blue'] || attributes[:blue] attributes[:sky] = fields['sky'] || attributes[:sky] attributes[:pink] = fields['pink'] || attributes[:pink] attributes[:lime] = fields['lime'] || attributes[:lime] attributes[:black] = fields['black'] || attributes[:black] self end