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.5.2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.6.1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.6.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.5.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.4.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.3.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.2.2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.2.1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.2.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0.rc0 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0.beta6 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0.beta5 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0.beta4 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0.beta3 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0.beta2 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.1.0.beta1 app/models/pageflow/image_file_css_background_image_urls.rb
pageflow-15.0.2 app/models/pageflow/image_file_css_background_image_urls.rb