Module: Shrine::Plugins::StoreDimensions::FileMethods

Defined in:
lib/shrine/plugins/store_dimensions.rb

Instance Method Summary collapse

Instance Method Details

#dimensionsObject


93
94
95
# File 'lib/shrine/plugins/store_dimensions.rb', line 93

def dimensions
  [width, height] if width || height
end

#heightObject


89
90
91
# File 'lib/shrine/plugins/store_dimensions.rb', line 89

def height
  Integer(["height"]) if ["height"]
end

#widthObject


85
86
87
# File 'lib/shrine/plugins/store_dimensions.rb', line 85

def width
  Integer(["width"]) if ["width"]
end