wcc-media-client 0.3.7 → 0.3.8

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: 7497c5ea2cfbf9fcda77b4384e00bec88451297b
4
- data.tar.gz: 2af63133929eb81a9cc57d5207f083c0c8489943
3
+ metadata.gz: af546b49bb12b5a071a1c813119cd096f20abc24
4
+ data.tar.gz: 10bb50350612f7d30bf13031b389511f34b9c917
5
5
  SHA512:
6
- metadata.gz: d704a1bda755930b01e1b60170960e49926c356246c605a0e32d389b7b1de280e03172df353e5740c076582a902882acb928e29392e0b998c3e6dcdb2bef9be4
7
- data.tar.gz: 60416f02027e290226a24d5c02ac8f3f587673d8d53e0812f573a33a23a446938788c8b9ce8a273fa0cef8f51d6bde9f570d56587883a8bd011250c856cb231e
6
+ metadata.gz: ac0427c7a791bb3207877505948093eb07f49d3f2ae18f7be00d56f7fc8f3c2fab039ed62c079e8db3102ef33c9e27322eda8fdbbe2795028e126afae6dc7eac
7
+ data.tar.gz: 7118ce170ea25a683f07bdf8e83254e4ee74a571d08a43f4a70d90901b188b3e377d649aaf2fcafeeffbb3b3ae26fe7092fce78fc9570ac0bfa2047e1f6410cf
@@ -3,6 +3,7 @@ require_relative 'message'
3
3
  require_relative 'series'
4
4
  require_relative 'speaker'
5
5
  require_relative 'tag'
6
+ require_relative 'playlist'
6
7
  require_relative 'client/response'
7
8
 
8
9
  module WCC
@@ -29,7 +30,8 @@ module WCC
29
30
  'messages' => WCC::Media::Message,
30
31
  'series' => WCC::Media::Series,
31
32
  'speakers' => WCC::Media::Speaker,
32
- 'tags' => WCC::Media::Tag
33
+ 'tags' => WCC::Media::Tag,
34
+ 'playlists' => WCC::Media::Playlist
33
35
  }.freeze
34
36
  attr_reader(*RESOURCES.keys)
35
37
 
@@ -0,0 +1,27 @@
1
+ require_relative 'base'
2
+ require_relative 'message'
3
+
4
+ class WCC::Media::Playlist < WCC::Media::Base
5
+ active_record_shim do
6
+ endpoint 'playlists'
7
+ end
8
+
9
+ class << self
10
+ # The Playlist route is only: :show
11
+ undef_method :find_all, :find_by
12
+ end
13
+
14
+ %w[
15
+ title
16
+ type
17
+ code
18
+ ].each do |att|
19
+ define_method att do
20
+ raw[att]
21
+ end
22
+ end
23
+
24
+ def messages
25
+ (raw['messages'] || []).map { |val| WCC::Media::Message.new(val) }
26
+ end
27
+ end
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Media
3
- VERSION = '0.3.7'.freeze
3
+ VERSION = '0.3.8'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-media-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-17 00:00:00.000000000 Z
11
+ date: 2019-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wcc-api
@@ -216,6 +216,7 @@ files:
216
216
  - lib/wcc/media/client.rb
217
217
  - lib/wcc/media/client/response.rb
218
218
  - lib/wcc/media/message.rb
219
+ - lib/wcc/media/playlist.rb
219
220
  - lib/wcc/media/series.rb
220
221
  - lib/wcc/media/speaker.rb
221
222
  - lib/wcc/media/tag.rb
@@ -243,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
244
  version: '0'
244
245
  requirements: []
245
246
  rubyforge_project:
246
- rubygems_version: 2.6.11
247
+ rubygems_version: 2.5.2
247
248
  signing_key:
248
249
  specification_version: 4
249
250
  summary: ''