Class: NotifyOn::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



15
16
17
18
19
# File 'lib/notify_on/configuration.rb', line 15

def initialize
  @deliver_mail = :now
  @mailer_class = 'NotifyOn::NotificationMailer'
  @use_pusher_by_default = false
end

Instance Attribute Details

#default_emailObject

Returns the value of attribute default_email.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def default_email
  @default_email
end

#default_pusher_channelObject

Returns the value of attribute default_pusher_channel.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def default_pusher_channel
  @default_pusher_channel
end

#default_pusher_eventObject

Returns the value of attribute default_pusher_event.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def default_pusher_event
  @default_pusher_event
end

#deliver_mailObject

Returns the value of attribute deliver_mail.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def deliver_mail
  @deliver_mail
end

#mailer_classObject

Returns the value of attribute mailer_class.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def mailer_class
  @mailer_class
end

#pusher_app_idObject

Returns the value of attribute pusher_app_id.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def pusher_app_id
  @pusher_app_id
end

#pusher_keyObject

Returns the value of attribute pusher_key.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def pusher_key
  @pusher_key
end

#pusher_secretObject

Returns the value of attribute pusher_secret.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def pusher_secret
  @pusher_secret
end

#use_pusher_by_defaultObject

Returns the value of attribute use_pusher_by_default.



4
5
6
# File 'lib/notify_on/configuration.rb', line 4

def use_pusher_by_default
  @use_pusher_by_default
end