Sha256: 677dd82027d8bb1eb44e3fbba9b6b0abaf4cdcb0d28e5b9b4ac3165b00ea3c14

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

require "net/https"
require "uri"

module Maxipago
  module RequestBuilder
    class ApiRequest < Maxipago::RequestBuilder::Request
      URL = ENV['MP_URL_API'] || "https://testeapi.maxipago.net/UniversalAPI/postAPI"

      private

      def set_uri
        @uri = URI.parse(URL)
      end

      def build_xml(opts)
        Maxipago::XmlBuilder::BuilderApi.new(@maxipagoId, @apiKey, @apiVersion, opts).get_xml_data
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maxipago-0.1.4 lib/maxipago/request_builder/api_request.rb
maxipago-0.1.3 lib/maxipago/request_builder/api_request.rb