tickethub 0.3.91 → 0.3.92

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 579fc4aefb09c391e80dd73ba2bcdfc5575d0a22
4
- data.tar.gz: f922de57d27946116d0fb9227e76538247bacbc6
3
+ metadata.gz: d234f52201a83df8aa89d41834a853c5dcc8a2e0
4
+ data.tar.gz: 71726c51e07d06d85d1316b80a412285df1d7a85
5
5
  SHA512:
6
- metadata.gz: c3195822794a5c9b5377862f713515d67914c2cd057ffec7095ddf3d066a7df89ea7ad79582ee2da4175e0f82d4dae7213d4d412fa8b1edeb126c4e21c96c98d
7
- data.tar.gz: dde60ead4baba083e53fd800635ea2b8bf8f8752d1982e2085df044dfdc343179a6d8ce7ee99551b391772694f56c884648bab01a1ea005fc03176b23bf024c4
6
+ metadata.gz: ba8cfa20505f477eb3ad5c515fcdb6a64b705aa1a9989df1d0f54892de35d1a353f1e474a8a072baa8a49d9e645c7b8d283ea71728828e088acd5333fb3b232f
7
+ data.tar.gz: dcb5449aa0149a48df7c4fd1614f4cf3c36eb8bc1b95710a3cf70a9b4085f7a1cb56ba19b8cc99bbe46903bb37cf80c93c5beb26559c0b5c5cf1239a5340c15a
@@ -36,6 +36,7 @@ module Tickethub
36
36
  require_relative 'supplier/shift'
37
37
  require_relative 'supplier/location'
38
38
  require_relative 'supplier/party'
39
+ require_relative 'supplier/weather'
39
40
 
40
41
  require_relative 'contact'
41
42
  require_relative 'address'
@@ -75,6 +76,7 @@ module Tickethub
75
76
  collection :sessions, Session
76
77
  collection :shifts, Shift
77
78
  collection :locations, Location
79
+ collection :weather, Weather
78
80
 
79
81
  association :address, Tickethub::Address
80
82
  association :contact, Tickethub::Contact
@@ -18,6 +18,7 @@ module Tickethub
18
18
  require_relative 'discount'
19
19
  require_relative 'broadcast'
20
20
  require_relative 'party'
21
+ require_relative 'weather'
21
22
 
22
23
  collection_method :broadcast do |params|
23
24
  Supplier::Broadcast.call self.endpoint, begin
@@ -42,6 +43,7 @@ module Tickethub
42
43
  association :product, Supplier::Product
43
44
  association :variant, Supplier::Variant
44
45
  association :party, Supplier::Party
46
+ association :weather, Supplier::Weather
45
47
 
46
48
  attribute :amount, type: :money
47
49
  attribute :discount, type: :money
@@ -28,6 +28,7 @@ module Tickethub
28
28
  require_relative 'scan'
29
29
  require_relative 'import'
30
30
  require_relative 'party'
31
+ require_relative 'weather'
31
32
 
32
33
  collection :bookings, Supplier::Booking
33
34
  collection :tickets, Supplier::Ticket
@@ -46,6 +47,7 @@ module Tickethub
46
47
  collection :channels, Supplier::Channel
47
48
  collection :imports, Supplier::Import
48
49
  collection :parties, Supplier::Party
50
+ collection :weather, Supplier::Weather
49
51
 
50
52
  collection :options, Supplier::Option do
51
53
  def dates(from, to, booking = {})
@@ -0,0 +1,14 @@
1
+ require_relative '../resource'
2
+
3
+ module Tickethub
4
+ class Supplier::Weather < Resource
5
+ path '/supplier/weather'
6
+
7
+ require_relative 'product'
8
+
9
+ association :product, Supplier::Product
10
+
11
+ attribute :from, type: :datetime
12
+ attribute :to, type: :datetime
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.3.91'
2
+ VERSION = '0.3.92'
3
3
  end
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.91
4
+ version: 0.3.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-28 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -183,6 +183,7 @@ files:
183
183
  - lib/tickethub/supplier/transfer.rb
184
184
  - lib/tickethub/supplier/user.rb
185
185
  - lib/tickethub/supplier/variant.rb
186
+ - lib/tickethub/supplier/weather.rb
186
187
  - lib/tickethub/token.rb
187
188
  - lib/tickethub/user.rb
188
189
  - lib/tickethub/user/supplier.rb