Sha256: 9ee1226e25a2b693480f6a0d17cac4b3df00255721ca5b72dfdbfe97fc74e7fd

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

module Nordea
  module FileTransfer
    class Request
      attr_accessor :cert, :private_key
      attr_accessor :request_header
      attr_accessor :application_request

      def to_hash
        { "RequestHeader" => request_header.to_hash["RequestHeader"],
          "ApplicationRequest" => application_request.to_signed_and_encoded_xml({
            :cert => cert,
            :private_key => private_key
          })
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nordea-filetransfer-0.2.1 lib/nordea/file_transfer/request.rb