Class: ActivityNotification::Config

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

Overview

Class used to initialize configuration object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Config

Returns a new instance of Config.



12
13
14
15
16
17
18
19
20
# File 'lib/activity_notification/config.rb', line 12

def initialize
  @enabled           = true
  @table_name        = "notifications"
  @mailer_sender     = nil
  @mailer            = "ActivityNotification::Mailer"
  @parent_mailer     = 'ActionMailer::Base'
  @parent_controller = 'ApplicationController'
  @opened_limit      = 10
end

Instance Attribute Details

#enabled ⇒ Object

Returns the value of attribute enabled.



4
5
6
# File 'lib/activity_notification/config.rb', line 4

def enabled
  @enabled
end

#mailer ⇒ Object

Returns the value of attribute mailer.



4
5
6
# File 'lib/activity_notification/config.rb', line 4

def mailer
  @mailer
end

#mailer_sender ⇒ Object

Returns the value of attribute mailer_sender.



4
5
6
# File 'lib/activity_notification/config.rb', line 4

def mailer_sender
  @mailer_sender
end

#opened_limit ⇒ Object

Returns the value of attribute opened_limit.



4
5
6
# File 'lib/activity_notification/config.rb', line 4

def opened_limit
  @opened_limit
end

#parent_controller ⇒ Object

Returns the value of attribute parent_controller.



4
5
6
# File 'lib/activity_notification/config.rb', line 4

def parent_controller
  @parent_controller
end

#parent_mailer ⇒ Object

Returns the value of attribute parent_mailer.



4
5
6
# File 'lib/activity_notification/config.rb', line 4

def parent_mailer
  @parent_mailer
end

#table_name ⇒ Object

Returns the value of attribute table_name.



4
5
6
# File 'lib/activity_notification/config.rb', line 4

def table_name
  @table_name
end