class Photish::Gallery::Photo
Attributes
parent[R]
path[R]
Public Class Methods
new(parent, path)
click to toggle source
Calls superclass method
Photish::Plugin::Pluginable::new
# File lib/photish/gallery/photo.rb, line 14 def initialize(parent, path) super @parent = parent @path = path end
Public Instance Methods
images()
click to toggle source
# File lib/photish/gallery/photo.rb, line 24 def images @images ||= qualities.map { |quality| Image.new(self, path, quality) } end
name()
click to toggle source
# File lib/photish/gallery/photo.rb, line 20 def name @name ||= basename_without_extension end
Also aliased as: base_url_name
plugin_type()
click to toggle source
# File lib/photish/gallery/photo.rb, line 28 def plugin_type Plugin::Type::Photo end
Private Instance Methods
url_end()
click to toggle source
# File lib/photish/gallery/photo.rb, line 39 def url_end 'index.html' end