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
# File 'app/models/pageflow/image_file_url_templates.rb', line 3

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