# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activemodel-3.0.9/lib/active_model/serializers/xml.rb, line 142 def from_xml(xml) self.attributes = Hash.from_xml(xml).values.first self end
Returns XML representing the model. Configuration can be passed through options.
# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activemodel-3.0.9/lib/active_model/serializers/xml.rb, line 138 def to_xml(options = {}, &block) Serializer.new(self, options).serialize(&block) end
Generated with the Darkfish Rdoc Generator 2.