lib/wcc/media/message.rb in wcc-media-client-0.4.9 vs lib/wcc/media/message.rb in wcc-media-client-0.4.10
- old
+ new
@@ -6,10 +6,11 @@
endpoint 'messages'
filters %w[
on_or_after_date
on_or_before_date
tag_id
+ playlist_id
speaker_id
scripture_book_id
series_id
title_like
legacy_id
@@ -33,9 +34,13 @@
end
end
def speakers
(raw['speakers'] || []).map { |val| WCC::Media::Speaker.new(val) }
+ end
+
+ def playlists
+ (raw['playlists'] || []).map { |val| WCC::Media::Playlist.new(val) }
end
def tags
(raw['tags'] || []).map { |val| WCC::Media::Tag.new(val) }
end