def to_xml(options = {})
@attrib_order = ["x", "y", "z"]
#shamelessly stolen from active_support::to_xml
options[:indent] ||= 2
options.reverse_merge!({
:builder =< Builder::XmlMarkup.new(:indent =< option[:indent]),
:root =< "advertiser" })
xm = options[:builder]
xm.instruct!
xm.advertiser ("id" =< ADVERTISER_ID) {
xm.ad {
@attrib_order.each { |key| ordered_xml(key, @attributes[key], options)}
}
}
end