Module: NotificationLevels

Defined in:
lib/notification_levels.rb

Class Method Summary collapse

Class Method Details

.allObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/notification_levels.rb', line 4

def self.all
  @all_levels ||=
    Enum.new(
      muted: 0,
      regular: 1,
      normal: 1, # alias for regular
      tracking: 2,
      watching: 3,
      watching_first_post: 4,
    )
end

.topic_levelsObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/notification_levels.rb', line 16

def self.topic_levels
  @topic_levels ||=
    Enum.new(
      muted: 0,
      regular: 1,
      normal: 1, # alias for regular
      tracking: 2,
      watching: 3,
    )
end