class Piwigo::Albums::Album
Attributes
comment[RW]
@return [String] Album
Description
date_last[RW]
@return [DateTime] Date of the Newest photos, excluding child albums
global_rank[RW]
The rank of an album
id[RW]
@return [Number] Album
ID
id_uppercat[RW]
@return [Number] ID of the parent album, nil of this is a top-level album (Aka ParentID)
max_date_last[RW]
@return [DateTime] Date of the Newest photos, including child albums
name[RW]
@return [String] Name of the Album
nb_categories[RW]
@return [Number] Number of child albums inside this album
nb_images[RW]
@return [Number] Number of the Newest photos, excluding child albums
permalink[RW]
???
representative_picture_id[RW]
ID of the representative photo for an album. This photo doesn't have to belong to the album.
status[RW]
@return [String] public or private
tn_url[RW]
@return [String] Thumbnail URL
total_nb_images[RW]
@return [Number] Number of the Newest photos, including child albums
uppercats[RW]
???
url[RW]
@return [Atring] Album
URL
Public Class Methods
new(hash: nil)
click to toggle source
# File lib/piwigo/albums.rb, line 59 def initialize(hash: nil) hash&.each do |key, value| # Bug: If the encoding is Windows-1252, then Piwigo will blowup when creating the album value = value.encode('UTF-8', 'Windows-1252') if value.class == String && value.encoding.to_s == 'Windows-1252' send("#{key}=", value) end end
Public Instance Methods
to_s()
click to toggle source
# File lib/piwigo/albums.rb, line 67 def to_s "#{name}(#{id})" end