Class: Thredded::BaseNotifier::NotificationsDefault

Inherits:
Object
  • Object
show all
Defined in:
lib/thredded/base_notifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled) ⇒ NotificationsDefault

Returns a new instance of NotificationsDefault.



15
16
17
# File 'lib/thredded/base_notifier.rb', line 15

def initialize(enabled)
  @enabled = enabled
end

Instance Attribute Details

#enabledObject (readonly)

Returns the value of attribute enabled.



19
20
21
# File 'lib/thredded/base_notifier.rb', line 19

def enabled
  @enabled
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/thredded/base_notifier.rb', line 21

def enabled?
  enabled
end