Method: Trello::Comment#update_fields

Defined in:
lib/trello/comment.rb

#update_fields(fields) ⇒ Object

Update the attributes of a Comment

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



29
30
31
32
33
34
35
# File 'lib/trello/comment.rb', line 29

def update_fields(fields)
  attributes[:action_id]          = fields['id']
  attributes[:text]               = fields['data']['text']
  attributes[:date]               = Time.iso8601(fields['date'])
  attributes[:member_creator_id]  = fields['idMemberCreator']
  self
end