Class: Maglev::FetchSectionScreenshotPath

Inherits:
Object
  • Object
show all
Includes:
Injectable
Defined in:
app/services/maglev/fetch_section_screenshot_path.rb

Instance Method Summary collapse

Instance Method Details

#callObject



12
13
14
15
# File 'app/services/maglev/fetch_section_screenshot_path.rb', line 12

def call
  path = "#{fetch_sections_path.call(theme: theme)}/#{section.category}/#{section.id}.jpg"
  absolute ? "#{Rails.root}/public/#{path}" : "/#{path}"
end