Class: Voltron::Config::Notify

Inherits:
Object
  • Object
show all
Defined in:
lib/voltron/config/notify.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNotify

Returns a new instance of Notify.



18
19
20
21
22
23
24
# File 'lib/voltron/config/notify.rb', line 18

def initialize
  @use_queue ||= false
  @email_from ||= '[email protected]'
  @default_mailer = Voltron::NotificationMailer
  @default_method = :notify
  @default_template = 'voltron/notification_mailer/notify.html.erb'
end

Instance Attribute Details

#default_mailerObject

Email config settings



16
17
18
# File 'lib/voltron/config/notify.rb', line 16

def default_mailer
  @default_mailer
end

#default_methodObject

Email config settings



16
17
18
# File 'lib/voltron/config/notify.rb', line 16

def default_method
  @default_method
end

#default_templateObject

Email config settings



16
17
18
# File 'lib/voltron/config/notify.rb', line 16

def default_template
  @default_template
end

#email_fromObject

Email config settings



16
17
18
# File 'lib/voltron/config/notify.rb', line 16

def email_from
  @email_from
end

#sms_account_sidObject

SMS config settings



13
14
15
# File 'lib/voltron/config/notify.rb', line 13

def 
  @sms_account_sid
end

#sms_auth_tokenObject

SMS config settings



13
14
15
# File 'lib/voltron/config/notify.rb', line 13

def sms_auth_token
  @sms_auth_token
end

#sms_fromObject

SMS config settings



13
14
15
# File 'lib/voltron/config/notify.rb', line 13

def sms_from
  @sms_from
end

#use_queueObject

Returns the value of attribute use_queue.



10
11
12
# File 'lib/voltron/config/notify.rb', line 10

def use_queue
  @use_queue
end