Class: SmartCacheTenant::Configuration
- Inherits:
-
Object
- Object
- SmartCacheTenant::Configuration
- Defined in:
- lib/smart_cache_tenant/configuration.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#log_queries ⇒ Object
Returns the value of attribute log_queries.
-
#tenant_column ⇒ Object
Returns the value of attribute tenant_column.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/smart_cache_tenant/configuration.rb', line 7 def initialize @enabled = true @ttl = 1.hour @tenant_column = nil @log_queries = !Rails.env.production? end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/smart_cache_tenant/configuration.rb', line 5 def enabled @enabled end |
#log_queries ⇒ Object
Returns the value of attribute log_queries.
5 6 7 |
# File 'lib/smart_cache_tenant/configuration.rb', line 5 def log_queries @log_queries end |
#tenant_column ⇒ Object
Returns the value of attribute tenant_column.
5 6 7 |
# File 'lib/smart_cache_tenant/configuration.rb', line 5 def tenant_column @tenant_column end |
#ttl ⇒ Object
Returns the value of attribute ttl.
5 6 7 |
# File 'lib/smart_cache_tenant/configuration.rb', line 5 def ttl @ttl end |