Class: Serializer::Configuration
- Inherits:
-
Object
- Object
- Serializer::Configuration
- Defined in:
- lib/serializer/configuration.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#default_cache_time ⇒ Object
Returns the value of attribute default_cache_time.
-
#disable_model_caching ⇒ Object
Returns the value of attribute disable_model_caching.
-
#enable_includes ⇒ Object
Returns the value of attribute enable_includes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/serializer/configuration.rb', line 5 def initialize @enable_includes = true @default_cache_time = 360 @disable_model_caching = false @debug = false end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
3 4 5 |
# File 'lib/serializer/configuration.rb', line 3 def debug @debug end |
#default_cache_time ⇒ Object
Returns the value of attribute default_cache_time.
3 4 5 |
# File 'lib/serializer/configuration.rb', line 3 def default_cache_time @default_cache_time end |
#disable_model_caching ⇒ Object
Returns the value of attribute disable_model_caching.
3 4 5 |
# File 'lib/serializer/configuration.rb', line 3 def disable_model_caching @disable_model_caching end |
#enable_includes ⇒ Object
Returns the value of attribute enable_includes.
3 4 5 |
# File 'lib/serializer/configuration.rb', line 3 def enable_includes @enable_includes end |