Class: PublicActivity::Config

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

Overview

Class used to initialize configuration object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config


7
8
9
10
11
# File 'lib/public_activity/config.rb', line 7

def initialize
  @enabled    = true
  @table_name = "activities"
  @orm        = :active_record
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled


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

def enabled
  @enabled
end

#ormObject

Returns the value of attribute orm


5
6
7
# File 'lib/public_activity/config.rb', line 5

def orm
  @orm
end

#table_nameObject

Returns the value of attribute table_name


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

def table_name
  @table_name
end