mastercard_api_core 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mastercard/core/model.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67c30ddd3e3dba043ac66ca44b1d6e51ae9af256
|
4
|
+
data.tar.gz: aaa506eb13f5daadd7dbfa2d91074ae244530de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5758d15e7d61656353cd88d82dd5fabd056dacb2c5895b58e080b8a024a46d6c4a8cb7ebf9d22676b836aba24554a4e4f4805183ad9342247cbb10446b510685
|
7
|
+
data.tar.gz: deb424db559d761e42b409b9c4e2a561b2afad7ce0fb55875c6c90739e2e8faacd89934044b996438d62b1313f28a2532a11ecba97756a31969b15602753c862
|
@@ -424,7 +424,7 @@ module MasterCard
|
|
424
424
|
if action == APIController::ACTION_LIST
|
425
425
|
returnObj = []
|
426
426
|
|
427
|
-
if response.key?(RequestMap::KEY_LIST)
|
427
|
+
if response.is_a?(Hash) && response.key?(RequestMap::KEY_LIST)
|
428
428
|
response = response[RequestMap::KEY_LIST]
|
429
429
|
end
|
430
430
|
|
@@ -438,7 +438,7 @@ module MasterCard
|
|
438
438
|
|
439
439
|
end
|
440
440
|
|
441
|
-
elsif response.is_a(Array)
|
441
|
+
elsif response.is_a?(Array)
|
442
442
|
|
443
443
|
response.each do |value|
|
444
444
|
requestMap = RequestMap.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_api_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MasterCard Worldwide
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|