Methods

Included Modules

Class Index [+]

Quicksearch

ActiveModel::Serializers::Xml

Public Instance Methods

from_xml(xml) click to toggle source
     # File lib/active_model/serializers/xml.rb, line 141
141:       def from_xml(xml)
142:         self.attributes = Hash.from_xml(xml).values.first
143:         self
144:       end
to_xml(options = {}, &block) click to toggle source

Returns XML representing the model. Configuration can be passed through options.

     # File lib/active_model/serializers/xml.rb, line 137
137:       def to_xml(options = {}, &block)
138:         Serializer.new(self, options).serialize(&block)
139:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.