Class: ActivityNotification::Config
- Inherits:
-
Object
- Object
- ActivityNotification::Config
- Defined in:
- lib/activity_notification/config.rb
Overview
Class used to initialize configuration object.
Instance Attribute Summary collapse
- #email_enabled ⇒ Object
- #enabled ⇒ Object
- #mailer ⇒ Object
- #mailer_sender ⇒ Object
- #opened_index_limit ⇒ Object
- #parent_controller ⇒ Object
- #parent_mailer ⇒ Object
- #table_name ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Initialize configuration for ActivityNotification.
Constructor Details
#initialize ⇒ Config
Initialize configuration for ActivityNotification. These configuration can be overriden in initializer.
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/activity_notification/config.rb', line 71 def initialize @enabled = true @table_name = 'notifications' @email_enabled = false @mailer_sender = nil @mailer = 'ActivityNotification::Mailer' @parent_mailer = 'ActionMailer::Base' @parent_controller = 'ApplicationController' @opened_index_limit = 10 end |
Instance Attribute Details
#email_enabled ⇒ Boolean #email_enabled=(value) ⇒ Boolean
26 27 28 |
# File 'lib/activity_notification/config.rb', line 26 def email_enabled @email_enabled end |
#enabled ⇒ Boolean #enabled=(value) ⇒ Boolean
10 11 12 |
# File 'lib/activity_notification/config.rb', line 10 def enabled @enabled end |
#mailer ⇒ String #mailer=(value) ⇒ String
42 43 44 |
# File 'lib/activity_notification/config.rb', line 42 def mailer @mailer end |
#mailer_sender ⇒ String #mailer_sender=(value) ⇒ String
34 35 36 |
# File 'lib/activity_notification/config.rb', line 34 def mailer_sender @mailer_sender end |
#opened_index_limit ⇒ Integer #opened_index_limit=(value) ⇒ Integer
66 67 68 |
# File 'lib/activity_notification/config.rb', line 66 def opened_index_limit @opened_index_limit end |
#parent_controller ⇒ String #parent_controller=(value) ⇒ String
58 59 60 |
# File 'lib/activity_notification/config.rb', line 58 def parent_controller @parent_controller end |