fulfil-io 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/fulfil/interactive_report.rb +13 -6
- data/lib/fulfil/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: 2ee812b819341ca5960284540853594c9ec4ec07735f75672913cbdce1e7bf72
|
4
|
+
data.tar.gz: 01f68a856b317a9ccc00946bac7ce06e638e9d016bf075a7e4130d17420f7c8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb6a91114dea84e8c578f96ab2599ad03c036fc3222bf4b494f8cd32f79944b744660a2c0e4c7c45602e05e28f651eb6a6786a51e591950e04e36b291b3755a3
|
7
|
+
data.tar.gz: 7d107fba6190bafa996da7cb9f081089d64d7d8bc1f1cbf2506e30b310e789b2567669b84208dc807456372e1330ebce5ac701b762f4d0c95b38551de18daf83
|
data/CHANGELOG.md
CHANGED
@@ -5,13 +5,20 @@ module Fulfil
|
|
5
5
|
@report = report
|
6
6
|
end
|
7
7
|
|
8
|
-
def execute(
|
8
|
+
def execute(**params)
|
9
|
+
body = {}
|
10
|
+
|
11
|
+
params.each do |key, value|
|
12
|
+
body[key] = if value.is_a?(Date)
|
13
|
+
serialize_date(value)
|
14
|
+
else
|
15
|
+
value
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
9
19
|
@client.interactive_report(
|
10
20
|
endpoint: report_url,
|
11
|
-
body: [
|
12
|
-
start_date: serialize_date(start_date),
|
13
|
-
end_date: serialize_date(end_date)
|
14
|
-
}]
|
21
|
+
body: [body]
|
15
22
|
)
|
16
23
|
end
|
17
24
|
|
@@ -30,4 +37,4 @@ module Fulfil
|
|
30
37
|
}
|
31
38
|
end
|
32
39
|
end
|
33
|
-
end
|
40
|
+
end
|
data/lib/fulfil/version.rb
CHANGED