def update_fields(fields)
      attributes[:action_id]          = fields['id'] || attributes[:action_id]
      attributes[:text]               = fields['data']['text'] || attributes[:text]
      attributes[:date]               = Time.iso8601(fields['date']) if fields.has_key?('date')
      attributes[:member_creator_id]  = fields['idMemberCreator'] || attributes[:member_creator_id]
      self
    end
def update_fields(fields)
      attributes[:action_id]          = fields['id'] || attributes[:action_id]
      attributes[:text]               = fields['data']['text'] || attributes[:text]
      attributes[:date]               = Time.iso8601(fields['date']) if fields.has_key?('date')
      attributes[:member_creator_id]  = fields['idMemberCreator'] || attributes[:member_creator_id]
      self
    end
Update the attributes of a Comment

 Supply a hash of string keyed data retrieved from the Trello API representing
 a Comment.