me_api 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/me_api/client.rb +1 -6
- data/lib/me_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07abf381290c99a8f08bbc257aff0d0dd899299cf46008ef117aff4de9c2e3c7
|
4
|
+
data.tar.gz: a78c3d5f7d2573f53052b8242c6a06922e186d63a27ef69bab5fc78b05e4a95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 890eec00504370ddb8f5484fb1fadd689b27f5a5cf3126b9782c2c572b8db170772dae42966fa54f53007909b759b1ed79e9e28ecdf66b5879967d85680d3b6f
|
7
|
+
data.tar.gz: b0f96fe34d3986fa3fa9157fad80c0b0c062182a6b1b449739435efb1fd1ed13dd08337160dff21dec4c0bff3da174acde2d565c04f58304bfc9a05158c52f4c
|
data/lib/me_api/client.rb
CHANGED
@@ -32,12 +32,7 @@ module MeApi
|
|
32
32
|
}
|
33
33
|
}
|
34
34
|
response = post "api/v2/me/shipment/calculate", body: JSON.dump(body)
|
35
|
-
|
36
|
-
rates = response.json
|
37
|
-
else
|
38
|
-
rates = [response.json]
|
39
|
-
end
|
40
|
-
rates.map do |rate|
|
35
|
+
response.json.map do |rate|
|
41
36
|
Rate.new(
|
42
37
|
from: from,
|
43
38
|
to: to,
|
data/lib/me_api/version.rb
CHANGED