Class: ImagePack::Configuration
- Inherits:
-
Object
- Object
- ImagePack::Configuration
- Defined in:
- lib/image_pack/configuration.rb
Instance Attribute Summary collapse
-
#direct_input_threshold ⇒ Object
Returns the value of attribute direct_input_threshold.
-
#direct_pixel_threshold ⇒ Object
Returns the value of attribute direct_pixel_threshold.
-
#execution ⇒ Object
Returns the value of attribute execution.
-
#max_height ⇒ Object
Returns the value of attribute max_height.
-
#max_output_size ⇒ Object
Returns the value of attribute max_output_size.
-
#max_pixels ⇒ Object
Returns the value of attribute max_pixels.
-
#max_width ⇒ Object
Returns the value of attribute max_width.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 |
# File 'lib/image_pack/configuration.rb', line 13 def initialize @execution = :auto @direct_input_threshold = 128 * 1024 @direct_pixel_threshold = 1 * 1024 * 1024 @max_pixels = 100_000_000 @max_width = 30_000 @max_height = 30_000 @max_output_size = 256 * 1024 * 1024 end |
Instance Attribute Details
#direct_input_threshold ⇒ Object
Returns the value of attribute direct_input_threshold.
5 6 7 |
# File 'lib/image_pack/configuration.rb', line 5 def direct_input_threshold @direct_input_threshold end |
#direct_pixel_threshold ⇒ Object
Returns the value of attribute direct_pixel_threshold.
5 6 7 |
# File 'lib/image_pack/configuration.rb', line 5 def direct_pixel_threshold @direct_pixel_threshold end |
#execution ⇒ Object
Returns the value of attribute execution.
5 6 7 |
# File 'lib/image_pack/configuration.rb', line 5 def execution @execution end |
#max_height ⇒ Object
Returns the value of attribute max_height.
5 6 7 |
# File 'lib/image_pack/configuration.rb', line 5 def max_height @max_height end |
#max_output_size ⇒ Object
Returns the value of attribute max_output_size.
5 6 7 |
# File 'lib/image_pack/configuration.rb', line 5 def max_output_size @max_output_size end |
#max_pixels ⇒ Object
Returns the value of attribute max_pixels.
5 6 7 |
# File 'lib/image_pack/configuration.rb', line 5 def max_pixels @max_pixels end |
#max_width ⇒ Object
Returns the value of attribute max_width.
5 6 7 |
# File 'lib/image_pack/configuration.rb', line 5 def max_width @max_width end |