Class: Notifun::Configuration
- Inherits:
-
Object
- Object
- Notifun::Configuration
- Defined in:
- lib/notifun/configuration.rb
Instance Attribute Summary collapse
-
#admin_parent_controller ⇒ Object
Returns the value of attribute admin_parent_controller.
-
#controller_method ⇒ Object
Returns the value of attribute controller_method.
-
#notification_methods ⇒ Object
Returns the value of attribute notification_methods.
-
#parent_mailer ⇒ Object
Returns the value of attribute parent_mailer.
-
#premailer_html_to_text ⇒ Object
Returns the value of attribute premailer_html_to_text.
-
#push_config ⇒ Object
Returns the value of attribute push_config.
-
#push_notifier ⇒ Object
Returns the value of attribute push_notifier.
-
#text_config ⇒ Object
Returns the value of attribute text_config.
-
#text_notifier ⇒ Object
Returns the value of attribute text_notifier.
-
#time_zone ⇒ Object
Returns the value of attribute time_zone.
-
#user_parent_controller ⇒ Object
Returns the value of attribute user_parent_controller.
-
#wysiwyg ⇒ Object
Returns the value of attribute wysiwyg.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/notifun/configuration.rb', line 5 def initialize @notification_methods = [] @parent_mailer = 'ActionMailer::Base' @push_notifier = "Empty" @push_config = {} @text_notifier = "Empty" @text_config = {} @wysiwyg = "none" @admin_parent_controller = "ActionController::Base" @user_parent_controller = "ActionController::Base" @controller_method = "current_user" @time_zone = "Etc/UTC" @premailer_html_to_text = false end |
Instance Attribute Details
#admin_parent_controller ⇒ Object
Returns the value of attribute admin_parent_controller.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def admin_parent_controller @admin_parent_controller end |
#controller_method ⇒ Object
Returns the value of attribute controller_method.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def controller_method @controller_method end |
#notification_methods ⇒ Object
Returns the value of attribute notification_methods.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def notification_methods @notification_methods end |
#parent_mailer ⇒ Object
Returns the value of attribute parent_mailer.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def parent_mailer @parent_mailer end |
#premailer_html_to_text ⇒ Object
Returns the value of attribute premailer_html_to_text.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def premailer_html_to_text @premailer_html_to_text end |
#push_config ⇒ Object
Returns the value of attribute push_config.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def push_config @push_config end |
#push_notifier ⇒ Object
Returns the value of attribute push_notifier.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def push_notifier @push_notifier end |
#text_config ⇒ Object
Returns the value of attribute text_config.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def text_config @text_config end |
#text_notifier ⇒ Object
Returns the value of attribute text_notifier.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def text_notifier @text_notifier end |
#time_zone ⇒ Object
Returns the value of attribute time_zone.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def time_zone @time_zone end |
#user_parent_controller ⇒ Object
Returns the value of attribute user_parent_controller.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def user_parent_controller @user_parent_controller end |
#wysiwyg ⇒ Object
Returns the value of attribute wysiwyg.
2 3 4 |
# File 'lib/notifun/configuration.rb', line 2 def wysiwyg @wysiwyg end |