synsbasen_api 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/synsbasen_api/api_response.rb +4 -1
- data/lib/synsbasen_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eae796f59f57889dba53b55e321dff632935a108f5e5697a171907c9d59ba3e
|
4
|
+
data.tar.gz: 308637d66c60bab9443403ebc9dc80ef8d989368ab73c231a5a90c8076b3c858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '079ec0f9cfec921aa4af2469add7dc3cda8d207bf1644ef2e9250c31adbf65d8a1d4da278b931f6cea69ed3c0c4a8c3b7575f073b250559a8fe4e5113bfb86ff'
|
7
|
+
data.tar.gz: 26060a57d7ce0a782a3d7b4f6bd4ebf426240a2ceae0c1b66504e58d77427d06e5e292a0e9b96b56c6037ccc7a34590426876369407d9523c251a76f6159a8ff
|
@@ -12,6 +12,9 @@ module SynsbasenApi
|
|
12
12
|
# @return [Boolean] Indicates whether there is more data available in the response.
|
13
13
|
attr_reader :has_more
|
14
14
|
|
15
|
+
# @return [Numeric] The current page number.
|
16
|
+
attr_reader :page
|
17
|
+
|
15
18
|
# @return [Numeric] The total number of pages available.
|
16
19
|
attr_reader :total_pages
|
17
20
|
|
@@ -30,7 +33,7 @@ module SynsbasenApi
|
|
30
33
|
@data = response[:data]
|
31
34
|
@cost = response[:cost]
|
32
35
|
|
33
|
-
%i[has_more total_pages total_count].each do |key|
|
36
|
+
%i[has_more page total_pages total_count].each do |key|
|
34
37
|
instance_variable_set("@#{key}", response[key]) if response.key?(key)
|
35
38
|
end
|
36
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synsbasen_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Poulsen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Synsbasen API is the easiest way to get access to the Danish vehicle
|
15
15
|
registry. See https://api.synsbasen.dk for details.
|