Methods

Included Modules

Class/Module Index [+]

Quicksearch

ActiveModel::Serializers::Xml

Public Instance Methods

from_xml(xml) click to toggle source
# File lib/active_model/serializers/xml.rb, line 142
def from_xml(xml)
  self.attributes = Hash.from_xml(xml).values.first
  self
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 138
def to_xml(options = {}, &block)
  Serializer.new(self, options).serialize(&block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.