Sha256: 79bb8e82209ccb99b0c8788607a1e6452eb79b46fd11001aa5f5eaca7ea8f7b8

Contents?: true

Size: 522 Bytes

Versions: 16

Compression:

Stored size: 522 Bytes

Contents

module Envelope
  def self.build_envelope(mode, service, encoded_body)
    Nokogiri::XML::Builder.new do |xml|
      xml.GateMessage {
        xml.Version '2.0'
        xml.Header {
          xml.MessageDetails(type: 'request') {
            xml.Class(mode: mode) {
              xml.text service
            }
          }
          xml.SenderDetails {
            xml.Authentication(type: 'clear') {
              xml.ISId '124'
            }
          }
        }
        xml.Body encoded_body
      }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha16 app/modules/envelope.rb
egov_utils-1.5.0.alpha15 app/modules/envelope.rb
egov_utils-1.5.0.alpha14 app/modules/envelope.rb
egov_utils-1.5.0.alpha13 app/modules/envelope.rb
egov_utils-1.5.0.alpha12 app/modules/envelope.rb
egov_utils-1.5.0.alpha11 app/modules/envelope.rb
egov_utils-1.5.0.alpha10 app/modules/envelope.rb
egov_utils-1.5.0.alpha9 app/modules/envelope.rb
egov_utils-1.5.0.alpha8 app/modules/envelope.rb
egov_utils-1.5.0.alpha7 app/modules/envelope.rb
egov_utils-1.5.0.alpha6 app/modules/envelope.rb
egov_utils-1.5.0.alpha5 app/modules/envelope.rb
egov_utils-1.5.0.alpha4 app/modules/envelope.rb
egov_utils-1.5.0.alpha3 app/modules/envelope.rb
egov_utils-1.5.0.alpha2 app/modules/envelope.rb
egov_utils-1.5.0.alpha1 app/modules/envelope.rb