Class Ambling::Data::Base
In: lib/ambling/data.rb
Parent: Object

Build the xml with the class name in lower case

Methods

tag_name   to_xml  

Public Instance methods

[Source]

# File lib/ambling/data.rb, line 10
      def tag_name
        self.class.to_s.split("::").last.downcase
      end

[Source]

# File lib/ambling/data.rb, line 14
      def to_xml
        builder = Builder::XmlMarkup.new
        builder.tag!(tag_name) { self.build_xml(builder) }
        builder.target!
      end

[Validate]