Sha256: 4933afab9435687d40147485bcd847226c11a41884d8f0f0f36879e673759b46
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
require "net/http" 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.6 | lib/maxipago/request_builder/api_request.rb |
maxipago-0.1.5 | lib/maxipago/request_builder/api_request.rb |