Class: Presto::Configuration
- Inherits:
-
Object
- Object
- Presto::Configuration
- Defined in:
- lib/presto/configuration.rb
Instance Attribute Summary collapse
-
#extension_white_list ⇒ Object
Returns the value of attribute extension_white_list.
-
#max_height ⇒ Object
Returns the value of attribute max_height.
-
#max_width ⇒ Object
Returns the value of attribute max_width.
-
#min_height ⇒ Object
Returns the value of attribute min_height.
-
#min_width ⇒ Object
Returns the value of attribute min_width.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_list ⇒ Object
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_height ⇒ Object
Returns the value of attribute max_height.
4 5 6 |
# File 'lib/presto/configuration.rb', line 4 def max_height @max_height end |
#max_width ⇒ Object
Returns the value of attribute max_width.
4 5 6 |
# File 'lib/presto/configuration.rb', line 4 def max_width @max_width end |
#min_height ⇒ Object
Returns the value of attribute min_height.
4 5 6 |
# File 'lib/presto/configuration.rb', line 4 def min_height @min_height end |
#min_width ⇒ Object
Returns the value of attribute min_width.
4 5 6 |
# File 'lib/presto/configuration.rb', line 4 def min_width @min_width end |