Class: Notifun::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/notifun/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_controllerObject

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_methodObject

Returns the value of attribute controller_method.



2
3
4
# File 'lib/notifun/configuration.rb', line 2

def controller_method
  @controller_method
end

#notification_methodsObject

Returns the value of attribute notification_methods.



2
3
4
# File 'lib/notifun/configuration.rb', line 2

def notification_methods
  @notification_methods
end

#parent_mailerObject

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_textObject

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_configObject

Returns the value of attribute push_config.



2
3
4
# File 'lib/notifun/configuration.rb', line 2

def push_config
  @push_config
end

#push_notifierObject

Returns the value of attribute push_notifier.



2
3
4
# File 'lib/notifun/configuration.rb', line 2

def push_notifier
  @push_notifier
end

#text_configObject

Returns the value of attribute text_config.



2
3
4
# File 'lib/notifun/configuration.rb', line 2

def text_config
  @text_config
end

#text_notifierObject

Returns the value of attribute text_notifier.



2
3
4
# File 'lib/notifun/configuration.rb', line 2

def text_notifier
  @text_notifier
end

#time_zoneObject

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_controllerObject

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

#wysiwygObject

Returns the value of attribute wysiwyg.



2
3
4
# File 'lib/notifun/configuration.rb', line 2

def wysiwyg
  @wysiwyg
end