uphold 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uphold/entities/base_entity.rb +1 -1
- data/lib/uphold/request.rb +1 -1
- data/lib/uphold/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c395d58688d28d0b6d0caa78ad6c9010c6cae71
|
4
|
+
data.tar.gz: 9d42244fb95a90c0594febb3822511d8df2bd88c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e152e42faa65e3d703632cdd95a61ab409a4a8aabfa8e16f37012044740e4f79a1c1abdcb52f7b1f77ed60d2378eafe1a686e3628933bdb028594205e5f577
|
7
|
+
data.tar.gz: fe34ad12550606e9173646f496488c2eab3d987eb831bee1dc06d646e28a49a4effc295855ecbcc4683f3cf098b7afdc65f803df0ef82af420ad898ff582204e
|
@@ -5,7 +5,7 @@ module Uphold
|
|
5
5
|
|
6
6
|
def self.from_collection(entities, content_range)
|
7
7
|
total_size = (content_range && content_range.split('/')[1]) || entities.size
|
8
|
-
items = entities.map { |entity| new(entity) }
|
8
|
+
items = entities.map { |entity| new(entity.to_h) }
|
9
9
|
|
10
10
|
PaginatedCollection.new(items, total_size)
|
11
11
|
end
|
data/lib/uphold/request.rb
CHANGED
@@ -13,7 +13,7 @@ module Uphold
|
|
13
13
|
response = new(request_data).public_send(http_method)
|
14
14
|
|
15
15
|
with_valid_response(response) do
|
16
|
-
request_data.entity.from_collection(response.parsed_response
|
16
|
+
request_data.entity.from_collection(response.parsed_response, response.headers['content-range'])
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
data/lib/uphold/version.rb
CHANGED