Class: Presto::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
10
11
12
# File 'lib/presto/configuration.rb', line 6

def initialize
  self.max_width = 2000
  self.min_width = 1
  self.max_height = 2000
  self.min_height = 1
  self.extension_white_list = %w(jpg png)
end

Instance Attribute Details

#extension_white_listObject

Returns the value of attribute extension_white_list.



4
5
6
# File 'lib/presto/configuration.rb', line 4

def extension_white_list
  @extension_white_list
end

#max_heightObject

Returns the value of attribute max_height.



4
5
6
# File 'lib/presto/configuration.rb', line 4

def max_height
  @max_height
end

#max_widthObject

Returns the value of attribute max_width.



4
5
6
# File 'lib/presto/configuration.rb', line 4

def max_width
  @max_width
end

#min_heightObject

Returns the value of attribute min_height.



4
5
6
# File 'lib/presto/configuration.rb', line 4

def min_height
  @min_height
end

#min_widthObject

Returns the value of attribute min_width.



4
5
6
# File 'lib/presto/configuration.rb', line 4

def min_width
  @min_width
end