# File lib/flickr/base.rb, line 663 def self.from_xml(xml) att = xml.attributes return Flickr::Count.new(att['count'].to_i, Time.at(att['fromdate'].to_i), Time.at(att['todate'].to_i)) end