Class: Samurai::Message
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- Samurai::Message
- Defined in:
- lib/samurai/message.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from Base
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( = {}) builder = [:builder] || Builder::XmlMarkup.new() builder.tag!(:message) do self.attributes.each do |key, value| builder.tag!(key, value) end end end |