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[:red] = fields['red'] attributes[:orange] = fields['orange'] attributes[:green] = fields['green'] attributes[:purple] = fields['purple'] attributes[:blue] = fields['blue'] attributes[:sky] = fields['sky'] attributes[:pink] = fields['pink'] attributes[:lime] = fields['lime'] attributes[:black] = fields['black'] self end