Class: ImagePack::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/image_pack/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_thresholdObject

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_thresholdObject

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

#executionObject

Returns the value of attribute execution.



5
6
7
# File 'lib/image_pack/configuration.rb', line 5

def execution
  @execution
end

#max_heightObject

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_sizeObject

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_pixelsObject

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_widthObject

Returns the value of attribute max_width.



5
6
7
# File 'lib/image_pack/configuration.rb', line 5

def max_width
  @max_width
end