Class: Savon::WSDL::ParserWithArgList
- Inherits:
-
Parser
- Object
- Parser
- Savon::WSDL::ParserWithArgList
- Defined in:
- lib/savon_patches.rb
Instance Attribute Summary collapse
-
#arg_list ⇒ Object
readonly
Returns the value of attribute arg_list.
Instance Method Summary collapse
- #arg_list_from(tag, attrs) ⇒ Object
-
#initialize ⇒ ParserWithArgList
constructor
A new instance of ParserWithArgList.
- #tag_start(tag, attrs) ⇒ Object
Constructor Details
#initialize ⇒ ParserWithArgList
Returns a new instance of ParserWithArgList.
21 22 23 24 |
# File 'lib/savon_patches.rb', line 21 def initialize super @arg_list = {} end |
Instance Attribute Details
#arg_list ⇒ Object (readonly)
Returns the value of attribute arg_list.
19 20 21 |
# File 'lib/savon_patches.rb', line 19 def arg_list @arg_list end |
Instance Method Details
#arg_list_from(tag, attrs) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/savon_patches.rb', line 31 def arg_list_from(tag, attrs) # Track argument lists so I can use arrays instead of hashes when posting data if tag == "message" @section_name = attrs["name"] @arg_list[@section_name] = [] elsif tag == "part" @arg_list[@section_name] << attrs end end |
#tag_start(tag, attrs) ⇒ Object
26 27 28 29 |
# File 'lib/savon_patches.rb', line 26 def tag_start(tag, attrs) super arg_list_from tag, attrs if @section == :message end |