class Piwigo::Images::Paging
Attributes
count[RW]
@return [Number] Number of Images
on this page. When this is less then the number per page, then there are no more results.
page[RW]
@return [Number] Page number of the results
per_page[RW]
@return [Number] Number of images requesed per page
total_count[RW]
@return [Number] Total number of images across all pages
Public Class Methods
new(hash: nil)
click to toggle source
# File lib/piwigo/images.rb, line 75 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