Class: ActiveJob::Compressible::Configuration
- Inherits:
-
Object
- Object
- ActiveJob::Compressible::Configuration
- Defined in:
- lib/activejob/compressible/configuration.rb
Overview
Configuration class for ActiveJob::Compressible settings.
Manages compression behavior including threshold limits and algorithm selection. The compression threshold determines when job arguments should be compressed based on their serialized size.
Instance Attribute Summary collapse
-
#compression_algorithm ⇒ Object
Returns the value of attribute compression_algorithm.
-
#compression_threshold ⇒ Object
Returns the value of attribute compression_threshold.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
15 16 17 18 |
# File 'lib/activejob/compressible/configuration.rb', line 15 def initialize @compression_threshold = default_compression_threshold @compression_algorithm = :zlib end |
Instance Attribute Details
#compression_algorithm ⇒ Object
Returns the value of attribute compression_algorithm.
13 14 15 |
# File 'lib/activejob/compressible/configuration.rb', line 13 def compression_algorithm @compression_algorithm end |
#compression_threshold ⇒ Object
Returns the value of attribute compression_threshold.
12 13 14 |
# File 'lib/activejob/compressible/configuration.rb', line 12 def compression_threshold @compression_threshold end |