ax-track 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ax_track/objects/tracker.rb +8 -0
- data/lib/ax_track/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: 6f78da793c4f53b05b464fc50ee9706fdcfee25b4d72feadc27ef0e60e1a868e
|
4
|
+
data.tar.gz: 54cabd6e87be27a30eb0826dd142b5c80ff4cd69a361b12ff437e18fb38e11d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc4c3bf7479eff86ac3f04b38520c1b2d0252b180f1cb34e27e476749b29c982ccfa579f2d7c98079a47e53c0d7a4f09b190b7b5baf568de45a60eb4b949208
|
7
|
+
data.tar.gz: cb6c264e58bc56f5cfcd816a6cd0a728451dbba2193c33e94ed3ab204fbf53732dff6575a455f2523c3b3a2c8170e81c2507a586e0e74fc02ee3f9ce607041b8
|
data/Gemfile.lock
CHANGED
@@ -6,6 +6,10 @@ module AxTrack
|
|
6
6
|
@asset_details
|
7
7
|
end
|
8
8
|
|
9
|
+
def asset_id
|
10
|
+
asset_details.id
|
11
|
+
end
|
12
|
+
|
9
13
|
def name
|
10
14
|
@name = @asset_details['name']
|
11
15
|
end
|
@@ -23,6 +27,10 @@ module AxTrack
|
|
23
27
|
asset_details&.sensor_data.dig('battery', 'value')
|
24
28
|
end
|
25
29
|
|
30
|
+
def sensor_data
|
31
|
+
asset_details.sensor_data
|
32
|
+
end
|
33
|
+
|
26
34
|
def website_url
|
27
35
|
"https://app.ax-track.ch/#/map/assets/#{@tracker_id}"
|
28
36
|
end
|
data/lib/ax_track/version.rb
CHANGED