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-15.0.1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.5.1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.5.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.0.rc2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.0.rc1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.0.beta4 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.0.beta3 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.4.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.0.beta2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.0.beta1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.3.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.2.1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.2.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.1.1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.1.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.0.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.0.0.rc2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.0.0.rc1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-14.0.0.beta3 app/models/pageflow/image_file_css_background_image_urls.rb