Class: Thredded::BaseNotifier::NotificationsDefault
- Inherits:
-
Object
- Object
- Thredded::BaseNotifier::NotificationsDefault
- Defined in:
- lib/thredded/base_notifier.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
-
#initialize(enabled) ⇒ NotificationsDefault
constructor
A new instance of NotificationsDefault.
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
#enabled ⇒ Object (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
21 22 23 |
# File 'lib/thredded/base_notifier.rb', line 21 def enabled? enabled end |