tickethub 0.3.68 → 0.3.70
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/lib/tickethub/supplier/shift.rb +17 -0
- data/lib/tickethub/supplier/user.rb +4 -0
- data/lib/tickethub/supplier.rb +2 -0
- data/lib/tickethub/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63d9bdc81e10cc4ea3485f73f35cee54adf3437a
|
4
|
+
data.tar.gz: eec0b75bd9e02164d0652d08e6104f702dfb2872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65aff58262f9d607cbb49d121159d46112b09b2c2404f556ee0450793ead57134d397ec98f9ff071c77a71422d7d9693c17c807c032dc1ea8cccd0c0d97ac30b
|
7
|
+
data.tar.gz: 699cabf7a78c280640aed6ca2608243e41d39f8d9c0d1fb55966942b54da709f783dabb62a46ade1ebe148fde122dc228e86fae571d77573cf6564f7383d04cd
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Tickethub
|
4
|
+
class Supplier::Shift < Resource
|
5
|
+
path '/supplier/shifts'
|
6
|
+
|
7
|
+
require_relative 'user'
|
8
|
+
|
9
|
+
collection :user, Supplier::User
|
10
|
+
collection :approved_by, Supplier::User
|
11
|
+
|
12
|
+
attribute :closed_at, type: :datetime
|
13
|
+
attribute :approved_at, type: :datetime
|
14
|
+
attribute :updated_at, type: :datetime
|
15
|
+
attribute :created_at, type: :datetime
|
16
|
+
end
|
17
|
+
end
|
data/lib/tickethub/supplier.rb
CHANGED
@@ -31,6 +31,7 @@ module Tickethub
|
|
31
31
|
require_relative 'supplier/discount'
|
32
32
|
require_relative 'supplier/partner'
|
33
33
|
require_relative 'supplier/session'
|
34
|
+
require_relative 'supplier/shift'
|
34
35
|
|
35
36
|
require_relative 'contact'
|
36
37
|
require_relative 'address'
|
@@ -66,6 +67,7 @@ module Tickethub
|
|
66
67
|
collection :discounts, Discount
|
67
68
|
collection :partners, Partner
|
68
69
|
collection :sessions, Session
|
70
|
+
collection :shifts, Shift
|
69
71
|
|
70
72
|
association :address, Tickethub::Address
|
71
73
|
association :contact, Tickethub::Contact
|
data/lib/tickethub/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tickethub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -168,6 +168,7 @@ files:
|
|
168
168
|
- lib/tickethub/supplier/scan.rb
|
169
169
|
- lib/tickethub/supplier/season.rb
|
170
170
|
- lib/tickethub/supplier/session.rb
|
171
|
+
- lib/tickethub/supplier/shift.rb
|
171
172
|
- lib/tickethub/supplier/source.rb
|
172
173
|
- lib/tickethub/supplier/source/alipay.rb
|
173
174
|
- lib/tickethub/supplier/source/bitcoin.rb
|