class Bullet::NotificationCollector

Attributes

collection[R]

Public Class Methods

new() click to toggle source
# File lib/bullet/notification_collector.rb, line 9
def initialize
  reset
end

Public Instance Methods

add(value) click to toggle source
# File lib/bullet/notification_collector.rb, line 17
def add(value)
  @collection << value
end
notifications_present?() click to toggle source
# File lib/bullet/notification_collector.rb, line 21
def notifications_present?
  !@collection.empty?
end
reset() click to toggle source
# File lib/bullet/notification_collector.rb, line 13
def reset
  @collection = Set.new
end