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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34c0014b35fd2c5751cd11b90c99730472099f0218fe121f19add0e28b14d9f9
4
- data.tar.gz: 9ddee5341711f61bdc51961363b4434dff2cacd11d16ae7791f45327db975ad3
3
+ metadata.gz: 6f78da793c4f53b05b464fc50ee9706fdcfee25b4d72feadc27ef0e60e1a868e
4
+ data.tar.gz: 54cabd6e87be27a30eb0826dd142b5c80ff4cd69a361b12ff437e18fb38e11d1
5
5
  SHA512:
6
- metadata.gz: 785311de5a3ce20c3ef733055b001a2af4aae4e035bb2fa3ee07ca816bf32dd45a123cd830237e136cbc741a24bcb3b8e1302a9f15ea7e3e938982f000213da8
7
- data.tar.gz: 27b1852ba78ada2a75b7ba2dceca80a264e4f67a37bcf19f7b784cceb7985ea2501517187ce60c6e20950664a0df203104992d5182f41eacf0c05c0bbd763350
6
+ metadata.gz: 7dc4c3bf7479eff86ac3f04b38520c1b2d0252b180f1cb34e27e476749b29c982ccfa579f2d7c98079a47e53c0d7a4f09b190b7b5baf568de45a60eb4b949208
7
+ data.tar.gz: cb6c264e58bc56f5cfcd816a6cd0a728451dbba2193c33e94ed3ab204fbf53732dff6575a455f2523c3b3a2c8170e81c2507a586e0e74fc02ee3f9ce607041b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ax-track (0.2.1)
4
+ ax-track (0.2.2)
5
5
  faraday (~> 1.7)
6
6
  faraday_middleware (~> 1.1)
7
7
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AxTrack
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ax-track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Baumann