Sha256: 7e6e9312d9ab8abf6b94c4409f5e273249d859a5cb682e01f0661f9c1497cb99

Contents?: true

Size: 524 Bytes

Versions: 42

Compression:

Stored size: 524 Bytes

Contents

module Pageflow
  # @api private
  class ImageFileCssBackgroundImageUrls
    def call(image_file)
      {
        default: {
          desktop: image_file.ready? ? image_file.attachment.url(:large) : '',
          mobile: image_file.ready? ? image_file.attachment.url(:medium) : ''
        },
        panorama: {
          desktop: image_file.ready? ? image_file.attachment.url(:panorama_large) : '',
          mobile: image_file.ready? ? image_file.attachment.url(:panorama_medium) : ''
        }
      }
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
pageflow-14.0.0.beta2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.0.0.beta1 app/models/pageflow/image_file_css_background_image_urls.rb