class Trello::Member
Public Instance Methods
tracking_notifications_since(starting_date)
click to toggle source
Fetch all the direct notifications sent to the 'tracking user' starting from a given date
# File lib/patches/trello/member.rb, line 6 def tracking_notifications_since(starting_date) notifications(limit:1000).select(&greater_than_or_equal_to(starting_date)).select(&tracking_notification?) end
Private Instance Methods
greater_than_or_equal_to(starting_date)
click to toggle source
# File lib/patches/trello/member.rb, line 12 def greater_than_or_equal_to(starting_date) lambda { |notification| Chronic.parse(notification.date) >= starting_date } end
tracking_notification?()
click to toggle source
# File lib/patches/trello/member.rb, line 16 def tracking_notification? lambda { |notification| notification.type == "mentionedOnCard" } end