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
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
Update the fields of a label.

 Supply a hash of stringkeyed data retrieved from the Trello API representing
 a label.