module Shrine::Plugins::StoreDimensions::FileMethods

Public Instance Methods

dimensions() click to toggle source
# File lib/shrine/plugins/store_dimensions.rb, line 93
def dimensions
  [width, height] if width || height
end
height() click to toggle source
# File lib/shrine/plugins/store_dimensions.rb, line 89
def height
  Integer(metadata["height"]) if metadata["height"]
end
width() click to toggle source
# File lib/shrine/plugins/store_dimensions.rb, line 85
def width
  Integer(metadata["width"]) if metadata["width"]
end