seatsio 35.2.0 → 35.3.0
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/seatsio/chart_reports.rb +17 -16
- data/lib/seatsio/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: '04119e53fff832a017f6e2b8976af5006b59ec234d45d926ad9dc786d70dfcc4'
|
4
|
+
data.tar.gz: 06d4f2e2ea5307fe7fdcdde2f5f2b757ac8514bc1f5be6fb3fb689a27e6f5060
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7e4439a3bcd67965ec3bb38e16a855085d13fec62f5fa778ecf60cf27a16983c1029455270e6b35c2b29680306d04e43b224192a287bcba39a6c6ab9fc07478
|
7
|
+
data.tar.gz: 361bd672805ef4cadd8789dd61ecc187dac2c7fe86eae8cf66229fefd09bb85d45fdd7539921ccff37d00a8e8ff68ee5d366e700caaeab514ec5b19c8da84b82
|
data/Gemfile.lock
CHANGED
@@ -11,53 +11,54 @@ module Seatsio
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def by_label(chart_key, book_whole_tables = nil)
|
14
|
-
|
14
|
+
fetch_chart_report('byLabel', chart_key, book_whole_tables)
|
15
15
|
end
|
16
16
|
|
17
17
|
def by_object_type(chart_key, book_whole_tables = nil)
|
18
|
-
|
18
|
+
fetch_chart_report('byObjectType', chart_key, book_whole_tables)
|
19
19
|
end
|
20
20
|
|
21
|
-
def summary_by_object_type(chart_key)
|
22
|
-
fetch_summary_report('byObjectType', chart_key)
|
21
|
+
def summary_by_object_type(chart_key, book_whole_tables = nil)
|
22
|
+
fetch_summary_report('byObjectType', chart_key, book_whole_tables)
|
23
23
|
end
|
24
24
|
|
25
25
|
def by_category_key(chart_key, book_whole_tables = nil)
|
26
|
-
|
26
|
+
fetch_chart_report('byCategoryKey', chart_key, book_whole_tables)
|
27
27
|
end
|
28
28
|
|
29
|
-
def summary_by_category_key(chart_key)
|
30
|
-
fetch_summary_report('byCategoryKey', chart_key)
|
29
|
+
def summary_by_category_key(chart_key, book_whole_tables = nil)
|
30
|
+
fetch_summary_report('byCategoryKey', chart_key, book_whole_tables)
|
31
31
|
end
|
32
32
|
|
33
33
|
def by_category_label(chart_key, book_whole_tables = nil)
|
34
|
-
|
34
|
+
fetch_chart_report('byCategoryLabel', chart_key, book_whole_tables)
|
35
35
|
end
|
36
36
|
|
37
|
-
def summary_by_category_label(chart_key)
|
38
|
-
fetch_summary_report('byCategoryLabel', chart_key)
|
37
|
+
def summary_by_category_label(chart_key, book_whole_tables = nil)
|
38
|
+
fetch_summary_report('byCategoryLabel', chart_key, book_whole_tables)
|
39
39
|
end
|
40
40
|
|
41
41
|
def by_section(chart_key, book_whole_tables = nil)
|
42
|
-
|
42
|
+
fetch_chart_report('bySection', chart_key, book_whole_tables)
|
43
43
|
end
|
44
44
|
|
45
|
-
def summary_by_section(event_key)
|
46
|
-
fetch_summary_report('bySection', event_key)
|
45
|
+
def summary_by_section(event_key, book_whole_tables = nil)
|
46
|
+
fetch_summary_report('bySection', event_key, book_whole_tables)
|
47
47
|
end
|
48
48
|
|
49
49
|
private
|
50
50
|
|
51
|
-
def
|
51
|
+
def fetch_chart_report(report_type, chart_key, book_whole_tables)
|
52
52
|
params = book_whole_tables.nil? ? {} : { bookWholeTables: book_whole_tables }
|
53
53
|
url = "reports/charts/#{chart_key}/#{report_type}"
|
54
54
|
body = @http_client.get(url, params)
|
55
55
|
ChartReport.new(body)
|
56
56
|
end
|
57
57
|
|
58
|
-
def fetch_summary_report(report_type, event_key)
|
58
|
+
def fetch_summary_report(report_type, event_key, book_whole_tables)
|
59
|
+
params = book_whole_tables.nil? ? {} : { bookWholeTables: book_whole_tables }
|
59
60
|
url = "reports/charts/#{event_key}/#{report_type}/summary"
|
60
|
-
@http_client.get(url)
|
61
|
+
@http_client.get(url, params)
|
61
62
|
end
|
62
63
|
end
|
63
64
|
end
|
data/lib/seatsio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seatsio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 35.
|
4
|
+
version: 35.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seats.io
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|