Class: Guide::Photographer

Inherits:
Object
  • Object
show all
Defined in:
app/models/guide/photographer.rb

Instance Method Summary collapse

Constructor Details

#initialize(image_name, extension = 'png') ⇒ Photographer

Returns a new instance of Photographer.



2
3
4
5
# File 'app/models/guide/photographer.rb', line 2

def initialize(image_name, extension = 'png')
  @image_name = image_name
  @extension = extension
end

Instance Method Details

#image_pathObject



7
8
9
# File 'app/models/guide/photographer.rb', line 7

def image_path
  "#{asset_host}#{image_with_path_and_digest}"
end