seatsio 46.4.0 → 47.0.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 +4 -4
- data/.github/workflows/build.yml +2 -0
- data/Gemfile.lock +1 -1
- data/lib/seatsio/domain.rb +11 -9
- data/lib/seatsio/usage_reports.rb +1 -1
- 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: e2fcd1444010136b5977dc451c4999e12c24798a0ff24d378f9755955d34a595
|
4
|
+
data.tar.gz: e3cc6b0a73fc70b37b766c462ae014d0196f6d753359082d6e979a825ea12ca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f71931db3feb288dbf7da5c445101ec09b92f8aeba44d76ebc0b75c30d2402caa6681f9c867d7a2e3395c765d4500c90cd43c6d50f36e3ad0591e07be6860f5
|
7
|
+
data.tar.gz: 132f811a541aaa97a314a263ba7f114e152d2466c582904772df1be0af8589c4b0c6b192f5520f8fe93259081f64a2073223a93e650926a9bce45337d66fc081
|
data/.github/workflows/build.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/seatsio/domain.rb
CHANGED
@@ -419,18 +419,22 @@ module Seatsio
|
|
419
419
|
end
|
420
420
|
|
421
421
|
class UsageSummaryForAllMonths
|
422
|
-
attr_reader :
|
422
|
+
attr_reader :usage_cutoff_date, :usage
|
423
423
|
|
424
424
|
def initialize(data)
|
425
|
-
|
426
|
-
data.each do |item|
|
427
|
-
|
425
|
+
usage = []
|
426
|
+
data['usage'].each do |item|
|
427
|
+
usage << UsageSummaryForMonth.new(item)
|
428
428
|
end
|
429
|
-
@
|
429
|
+
@usage = usage
|
430
|
+
@usage_cutoff_date = DateTime.iso8601(data['usageCutoffDate'])
|
430
431
|
end
|
431
432
|
end
|
432
433
|
|
433
434
|
class UsageSummaryForMonth
|
435
|
+
|
436
|
+
attr_reader :month, :num_used_objects
|
437
|
+
|
434
438
|
def initialize(data)
|
435
439
|
@month = Month.from_json(data['month'])
|
436
440
|
@num_used_objects = data['numUsedObjects']
|
@@ -489,7 +493,7 @@ module Seatsio
|
|
489
493
|
|
490
494
|
class UsageForObjectV1
|
491
495
|
|
492
|
-
attr_reader :object, :num_first_bookings, :first_booking_date, :
|
496
|
+
attr_reader :object, :num_first_bookings, :first_booking_date, :num_first_selections, :num_first_bookings_or_selections
|
493
497
|
|
494
498
|
def initialize(data)
|
495
499
|
@object = data['object']
|
@@ -516,9 +520,7 @@ module Seatsio
|
|
516
520
|
attr_reader :year, :month
|
517
521
|
|
518
522
|
def self.from_json(data)
|
519
|
-
|
520
|
-
@month = data['month']
|
521
|
-
self
|
523
|
+
return Month.new(data['year'], data['month'])
|
522
524
|
end
|
523
525
|
|
524
526
|
def initialize(year, month)
|
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:
|
4
|
+
version: 47.0.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: 2023-10-
|
11
|
+
date: 2023-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|