Class: Guide::Photographer
- Inherits:
-
Object
- Object
- Guide::Photographer
- Defined in:
- app/models/guide/photographer.rb
Instance Method Summary collapse
- #image_path ⇒ Object
-
#initialize(image_name, extension = 'png') ⇒ Photographer
constructor
A new instance of Photographer.
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_path ⇒ Object
7 8 9 |
# File 'app/models/guide/photographer.rb', line 7 def image_path "#{asset_host}#{image_with_path_and_digest}" end |