Sha256: 5f59dc5f8da8d1efcecec7ec34c1739e1096d15c872bfa37cb0939a85027d33d
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
require "savon/qualified_message" require "gyoku" module Savon class Message def initialize(operation_name, namespace_identifier, types, used_namespaces, message, element_form_default, key_converter) @operation_name = operation_name @namespace_identifier = namespace_identifier @types = types @used_namespaces = used_namespaces @message = message @element_form_default = element_form_default @key_converter = key_converter end def to_s return @message.to_s unless @message.kind_of? Hash if @element_form_default == :qualified translated_operation_name = Gyoku.xml_tag(@operation_name, :key_converter => @key_converter).to_s @message = QualifiedMessage.new(@types, @used_namespaces, @request_key_converter).to_hash(@message, [translated_operation_name]) end gyoku_options = { :element_form_default => @element_form_default, :namespace => @namespace_identifier, :key_converter => @key_converter } Gyoku.xml(@message, gyoku_options) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
savon-2.1.0 | lib/savon/message.rb |
savon-2.0.3 | lib/savon/message.rb |
savon-2.0.2 | lib/savon/message.rb |
savon-2.0.1 | lib/savon/message.rb |