class Trello::Notification
@!attribute [r] id
@return [String]
@!attribute [rw] unread
@return [Boolean]
@!attribute [r] type
@return [Object]
@!attribute [r] date
@return [Datetime]
@!attribute [rw] data
@return [Object]
@!attribute [r] member_creator_id,
@return [String]
Public Class Methods
find(id, params = {})
click to toggle source
Locate a notification by its id
# File lib/trello/notification.rb, line 22 def find(id, params = {}) client.find(:notification, id, params) end
Public Instance Methods
board()
click to toggle source
# File lib/trello/notification.rb, line 41 def board Board.from_response client.get("/notifications/#{id}/board") end
card()
click to toggle source
# File lib/trello/notification.rb, line 49 def card Card.from_response client.get("/notifications/#{id}/card") end
list()
click to toggle source
# File lib/trello/notification.rb, line 45 def list List.from_response client.get("/notifications/#{id}/list") end
member()
click to toggle source
# File lib/trello/notification.rb, line 53 def member Member.from_response client.get("/notifications/#{id}/member") end
organization()
click to toggle source
# File lib/trello/notification.rb, line 57 def organization Organization.from_response client.get("/notifications/#{id}/organization") end
update_fields(fields)
click to toggle source
# File lib/trello/notification.rb, line 27 def update_fields(fields) attributes[:id] = fields['id'] attributes[:unread] = fields['unread'] attributes[:type] = fields['type'] attributes[:date] = fields['date'] attributes[:data] = fields['data'] attributes[:member_creator_id] = fields['idMemberCreator'] self end