maxipago 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fab34ce2668c59dedb0d2c02c78e68c0dfc10cdbffd37f4299e6039ae1e0708f
4
- data.tar.gz: 9350ce7604b00230a1059c88c3fc0fc0f548c8785faa6452f50cb30fd29a7f31
3
+ metadata.gz: ad3c9e9dd507fbba6837d8be9e846a6f505b003fd256b5675b46de805ce1a331
4
+ data.tar.gz: 5f3a18487121c8a513e4a931f6044a85a72cd20599d5430b3aad0e7e011329b2
5
5
  SHA512:
6
- metadata.gz: ce07a01b921a08301e1ac9d64b61b10d8b920534df727445b9360975fc73a33156928454d454229d4974848c835e07c7d3263e78bcd5427b1649fde0a7fcc949
7
- data.tar.gz: a2a4f32dc9b5c88c17d8137d213a9e1bd5be1b6dffb8718d11045875e483197f008b03733d6461fcf9a37a878369a7460c7a12a996d0167925f1449da3f61d41
6
+ metadata.gz: ffe60443a14ec9ff131b75e8893ab2597ea7a30391344f0d290df967d127755f94829e92bf462c2ee5d127c3ae47af856f51dd1de49c32080955c272e2811670
7
+ data.tar.gz: 1738f3e378dd9434f253f52d289b3d5543988ceb984998433d3ca14443cd68e062d89f9b079031f26a2e4f041dca7e3cc5285567a0908e2a80f0c8ad5c99a262
@@ -1,4 +1,4 @@
1
- require "net_http"
1
+ require "net/http"
2
2
  require "uri"
3
3
 
4
4
  module Maxipago
@@ -4,11 +4,12 @@ require 'uri'
4
4
  module Maxipago
5
5
  module RequestBuilder
6
6
  class Request
7
- def initialize(maxipagoId, apiKey)
8
- @maxipagoId = maxipagoId
9
- @apiKey = apiKey
10
- @apiVersion = Maxipago::Client::APIVERSION
11
- @header = {"Content-Type" => 'text/xml'}
7
+
8
+ def initialize(maxid, apikey)
9
+ @maxid = maxid
10
+ @apikey = apikey
11
+ @api_version = Maxipago::Client::APIVERSION
12
+ @header = { "Content-Type" => 'text/xml' }
12
13
  end
13
14
 
14
15
  def send_command(opts)
@@ -22,9 +23,9 @@ module Maxipago
22
23
  set_uri
23
24
  set_http_session
24
25
 
25
- @http_session.start {|http|
26
- repsonse = http.post(@uri.path, xml, @header)
27
- {header: response, body: response.body, message: response.message}
26
+ @http_session.start { |http|
27
+ response = http.post(@uri.path, xml, @header)
28
+ { header: response, body: response.body, message: response.message }
28
29
  }
29
30
  end
30
31
 
@@ -32,10 +33,10 @@ module Maxipago
32
33
  raise "This is an abstract method"
33
34
  end
34
35
 
35
- def buid_xml(opts)
36
+ def build_xml(opts)
36
37
  raise "This is an abstract method"
37
38
  end
38
-
39
+
39
40
  def set_http_session
40
41
  @http_session = Net::HTTP.new(@uri.host, @uri.port)
41
42
  @http_session.use_ssl = true if @uri.scheme == "https"
@@ -1,3 +1,3 @@
1
1
  module Maxipago
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxipago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - leotads