veezo-location-api 0.1.10 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a8b1750ea34c1d56c2e24fb3bfde3a99d0086a462219f6d6be04fb26d9874dc
4
- data.tar.gz: ea17e7cbacc8c3fc34752223175103327b1b82a111efc68c27c6acc69de0306f
3
+ metadata.gz: 5b32af4d5b6e7a8cb685f3c1942ae7290d871247f73ac60f852f4072dad0c279
4
+ data.tar.gz: 2c8c08c8f96946ae64a320cbb3334cc2f35f9f601db91662464ca5a59b8ef92f
5
5
  SHA512:
6
- metadata.gz: 11d2cbacfa3f2855a7266b498712acdd33bf0fdb5443a9411a62c05b4e263ff88f427430d1a7b15f506b31972ac8a229fa332f8a5b08704aff0a0ae31a399c00
7
- data.tar.gz: ca989351fd22894c7ef524a0206cf45898185df109e8e4dbacd48d492c58f5eaf7060c80a65f4f99736c5a8922700c698dc2189009ae9768db4a1bd56d138f5b
6
+ metadata.gz: 1bf5874049265a94c7e626273e5c657e73867b493b0399807319789f19a4a245871b294785cbbcd7af7ab4e8a484934542be994db991e19329e8ab0c43cb9fc7
7
+ data.tar.gz: f262f1975a972cdf09f6dfc8cbc97a8b469d26be154432b1fa8a549a9bd35d46b1930542129fe588dc683ced3f1e564eeb6ee18d51ee00256960bdad3a93dba6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veezo-location-api (0.1.9)
4
+ veezo-location-api (0.1.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,8 +14,24 @@ module VeezoLocationApi
14
14
  @tenant_id = tenant_id
15
15
  end
16
16
 
17
- def locations(occurence: Time.now)
18
- uri = URI(resolve_uri('/locations'))
17
+ def locations_by_day(occurence: nil)
18
+ uri = URI(resolve_uri('/locations/all-by-day'))
19
+ if occurence.nil?
20
+ occurence = Time.now.strftime("%Y-%m-%d")
21
+ end
22
+
23
+ body = { occurence: occurence }
24
+
25
+ get = generate_get(uri, body)
26
+ request(uri, get)
27
+ end
28
+
29
+ def last_locations_by_day(occurence: nil)
30
+ uri = URI(resolve_uri('/locations/last-by-day'))
31
+ if occurence.nil?
32
+ occurence = Time.now.strftime("%Y-%m-%d")
33
+ end
34
+
19
35
  body = { occurence: occurence }
20
36
 
21
37
  get = generate_get(uri, body)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VeezoLocationApi
4
- VERSION = '0.1.10'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veezo-location-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Barbiero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Gsed to expose the methods used for integration with the api.
14
14
  email: