Class: Samurai::Message

Inherits:
Base show all
Defined in:
lib/samurai/message.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

#has_errors?, setup_site!

Instance Method Details

#to_xml(options = {}) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/samurai/message.rb', line 2

def to_xml(options = {})
  builder = options[:builder] || Builder::XmlMarkup.new(options)
  builder.tag!(:message) do
    self.attributes.each do |key, value|
      builder.tag!(key, value)
    end
  end
end