class Photish::Gallery::Image
Attributes
parent[R]
path[R]
quality[R]
Public Class Methods
new(parent, path, quality)
click to toggle source
Calls superclass method
Photish::Plugin::Pluginable::new
# File lib/photish/gallery/image.rb, line 21 def initialize(parent, path, quality) super @parent = parent @path = path @quality = quality end
Public Instance Methods
name()
click to toggle source
# File lib/photish/gallery/image.rb, line 28 def name @name ||= "#{basename_without_extension} #{quality_name}" end
Also aliased as: base_url_name
plugin_type()
click to toggle source
# File lib/photish/gallery/image.rb, line 32 def plugin_type Plugin::Type::Image end
Private Instance Methods
url_end()
click to toggle source
# File lib/photish/gallery/image.rb, line 43 def url_end @url_end ||= slugify("#{basename_without_extension}-#{quality_name}.#{extension}") end