Class: Xrc::Elements::Message
- Inherits:
-
REXML::Element
- Object
- REXML::Element
- Xrc::Elements::Message
- Defined in:
- lib/xrc/elements/message.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(options = {}) ⇒ Message
Returns a new instance of Message.
4 5 6 7 8 9 10 11 |
# File 'lib/xrc/elements/message.rb', line 4 def initialize( = {}) super("message") attributes["from"] = [:from] attributes["to"] = [:to] attributes["type"] = [:type] body.text = [:body] add(body) end |