Class: MultiCompress::Config
- Inherits:
-
Object
- Object
- MultiCompress::Config
- Defined in:
- lib/multi_compress.rb
Instance Attribute Summary collapse
-
#max_output_size ⇒ Object
Returns the value of attribute max_output_size.
-
#streaming_max_output_size ⇒ Object
Returns the value of attribute streaming_max_output_size.
Instance Method Summary collapse
- #dup ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #reset! ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
39 40 41 |
# File 'lib/multi_compress.rb', line 39 def initialize reset! end |
Instance Attribute Details
#max_output_size ⇒ Object
Returns the value of attribute max_output_size.
37 38 39 |
# File 'lib/multi_compress.rb', line 37 def max_output_size @max_output_size end |
#streaming_max_output_size ⇒ Object
Returns the value of attribute streaming_max_output_size.
37 38 39 |
# File 'lib/multi_compress.rb', line 37 def streaming_max_output_size @streaming_max_output_size end |
Instance Method Details
#dup ⇒ Object
61 62 63 64 65 66 |
# File 'lib/multi_compress.rb', line 61 def dup copy = self.class.new copy.max_output_size = max_output_size copy.streaming_max_output_size = streaming_max_output_size copy end |
#reset! ⇒ Object
55 56 57 58 59 |
# File 'lib/multi_compress.rb', line 55 def reset! @max_output_size = DEFAULT_MAX_OUTPUT_SIZE @streaming_max_output_size = DEFAULT_STREAMING_MAX_OUTPUT_SIZE self end |