Class: Pageflow::ImageFileUrlTemplates

Inherits:
Object
  • Object
show all
Defined in:
app/models/pageflow/image_file_url_templates.rb

Instance Method Summary collapse

Instance Method Details

#callObject



3
4
5
6
7
8
9
# File 'app/models/pageflow/image_file_url_templates.rb', line 3

def call
  styles.each_with_object({}) do |style, result|
    result[style] = replace_extension_with_placeholder(
      UrlTemplate.from_attachment(example_file.attachment, style)
    )
  end
end