module JamRuby class IcecastDirectory < ActiveRecord::Base include JAmXml self.primary_key = 'id' attr_accessible :yp_url_timeout, :yp_url validates :yp_url_timeout, numericality: {only_integer: true}, length: {in: 1..30} def dumpXml (ident=1, output=$stdout) hash = Hash["yp_url_timeout" => self.yp_url_timeout, "yp_url" => self.yp_url] self.jdumpXml(hash, "directory", ident, output) end end end