Sha256: 3cb97b10c5e36b75299e2c56c9246be176391c4f046689dbf12bd44e055b15bd

Contents?: true

Size: 452 Bytes

Versions: 15

Compression:

Stored size: 452 Bytes

Contents

require "net/http"
require "uri"

module Maxipago
  module RequestBuilder
    class RapiRequest < Maxipago::RequestBuilder::Request
      URL = ENV['MP_URL_RAPI'] || "https://api.maxipago.net/ReportsAPI/servlet/ReportsAPI"

      private

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
maxipago-0.1.30 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.29 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.28 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.27 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.26 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.25 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.24 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.23 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.22 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.21 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.20 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.19 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.18 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.17 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.16 lib/maxipago/request_builder/rapi_request.rb