Class: Soap::Parser::Message
- Inherits:
-
Object
- Object
- Soap::Parser::Message
- Defined in:
- lib/soap/parser/message.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(_namespaces, node) ⇒ Message
constructor
A new instance of Message.
- #parse ⇒ Object
- #parse_message ⇒ Object
Constructor Details
#initialize(_namespaces, node) ⇒ Message
Returns a new instance of Message.
10 11 12 13 |
# File 'lib/soap/parser/message.rb', line 10 def initialize(_namespaces, node) @node = node @hash = {} end |
Instance Attribute Details
#hash ⇒ Object
Returns the value of attribute hash.
7 8 9 |
# File 'lib/soap/parser/message.rb', line 7 def hash @hash end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
8 9 10 |
# File 'lib/soap/parser/message.rb', line 8 def node @node end |
Instance Method Details
#parse ⇒ Object
15 16 17 |
# File 'lib/soap/parser/message.rb', line 15 def parse end |
#parse_message ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/soap/parser/message.rb', line 19 def @hash = Hash[@node.map do |node| [node["name"], Hash[:part, Hash[node.element_children.map do |mec| [mec["name"], mec.attribute("element").value] end ]]] end] end |