Method: DynamicImage::ProcessedImage#initialize
- Defined in:
- lib/dynamic_image/processed_image.rb
#initialize(record, options = {}) ⇒ ProcessedImage
Returns a new instance of ProcessedImage.
11 12 13 14 15 16 |
# File 'lib/dynamic_image/processed_image.rb', line 11 def initialize(record, = {}) @record = record @uncropped = [:uncropped] ? true : false @format = [:format].to_s.upcase if [:format] @format = "JPEG" if defined?(@format) && @format == "JPG" end |