zype 0.7.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1630781dc6b0e4329810d4b21b4c2a2636c18d6893cf00f6d5c8d560e75f111
4
- data.tar.gz: a8ac71d7ca6112aa24e7740c90753689bc372f8962813ccf5443e9b7168e93d2
3
+ metadata.gz: '09cfcc47b3341133014a7a429983075668b0fa5aa494ae7b362e00c2317752ef'
4
+ data.tar.gz: 9d920a6dd3db7abe303a097e758778c724f12f5273c15527f4125dba33c7019f
5
5
  SHA512:
6
- metadata.gz: 4d6e49d8de2fb7b8fe73cd59441bca8cf921ef9c89278510c940145e125fc231e34a9695299c01684f1f9cc80106b843d387d88872e14ae2cd89b9be585fe63b
7
- data.tar.gz: ca28609f4888a9ede6f5e1c2659328ecfa2d918b3670246b27defb0b5618ab8a43e2dd7233a9ad2081b15e4b02c1eb2bc015da3d21a325aa5d036ae279b634ca
6
+ metadata.gz: 77d68d2dde62271fc59abc8519392401e5f6bc70814824395cb302250b6c36e845476b4a313b0d29bfa55ca7b7994932eae7569caaf975c946ec3e8ee72271f1
7
+ data.tar.gz: 554d1bc2bdfa914881e75fa66d862e4dbdf3b9ba0c3bd17e7e6f6387cd464db052a6fcc4ce4b15818dee4c5f74ee6ba49b850713dc641f3e0858e371a4afa578
@@ -1,6 +1,6 @@
1
1
  module Zype
2
- # This class does not support all, create, update or delete methods
3
- # since the API does not support them
2
+ # This class does not support all, create, update or delete methods.
3
+ # Read more at https://docs.zype.com/v1.0/reference#apps
4
4
  #
5
5
  # @since 0.6.0
6
6
  class Apps < Zype::BaseModel
@@ -1,4 +1,6 @@
1
1
  module Zype
2
+ # Read more at https://docs.zype.com/v1.0/reference#categories
3
+ #
2
4
  # @since 0.4.0
3
5
  class Categories < Zype::BaseModel
4
6
  end
@@ -0,0 +1,13 @@
1
+ module Zype
2
+ # This class only supports all and find.
3
+ # Read more at https://docs.zype.com/v1.0/reference#device-categories
4
+ #
5
+ # @since 0.8.0
6
+ class DeviceCategories < Zype::BaseModel
7
+ %i[create update delete].each do |mtd|
8
+ send(:define_method, mtd) do
9
+ raise NoMethodError
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Zype
2
+ # This class only supports all and find.
3
+ # Read more at https://docs.zype.com/v1.0/reference#devices
4
+ #
5
+ # @since 0.8.0
6
+ class Devices < Zype::BaseModel
7
+ %i[create update delete].each do |mtd|
8
+ send(:define_method, mtd) do
9
+ raise NoMethodError
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,4 +1,6 @@
1
1
  module Zype
2
+ # Read more at https://docs.zype.com/v1.0/reference#encoders
3
+ #
2
4
  # @since 0.1.0
3
5
  class Encoders < Zype::BaseModel
4
6
  # Returns encoder matching the encoder_name
@@ -1,4 +1,6 @@
1
1
  module Zype
2
+ # Read more at https://docs.zype.com/v1.0/reference#live-events
3
+ #
2
4
  # @since 0.1.0
3
5
  class LiveEvents < Zype::BaseModel
4
6
  # Starts broadcasting a live event
@@ -1,4 +1,6 @@
1
1
  module Zype
2
+ # Read more at https://docs.zype.com/v1.0/reference#playlists
3
+ #
2
4
  # @since 0.4.0
3
5
  class Playlists < Zype::BaseModel
4
6
  # Returns videos for a playlist
@@ -0,0 +1,14 @@
1
+ module Zype
2
+ # Read more at https://docs.zype.com/v1.0/reference#program-guides
3
+ #
4
+ # @since 0.8.0
5
+ class ProgramGuides < Zype::BaseModel
6
+ # Returns the entries for the specified program guide
7
+ #
8
+ # @param id [String] the ID of the program guide
9
+ # @return [Array<Hash>] the program guide entries
10
+ def entries(id:)
11
+ client.execute(method: :get, path: "/#{path}/#{id}/entries")
12
+ end
13
+ end
14
+ end
@@ -1,7 +1,8 @@
1
1
  module Zype
2
2
  # The Subtitle Playlists API allows users to integrate subtitles with HLS manifests from a Zype video source.
3
3
  # It’s a simple way to add subtitles which will be supported in all platforms that implement the Apple HLS specification.
4
- # This class does not support all, find and update methods
4
+ # This class does not support all, find and update methods.
5
+ # Read more at https://docs.zype.com/v1.0/reference#subtitle-playlists
5
6
  #
6
7
  # @since 0.7.0
7
8
  class SubtitlePlaylists < Zype::BaseModel
@@ -1,5 +1,6 @@
1
1
  module Zype
2
- # Work with subtitles for a specific video
2
+ # Work with subtitles for a specific video.
3
+ # Read more at https://docs.zype.com/v1.0/reference#subtitles
3
4
  #
4
5
  # @since 0.7.0
5
6
  class Subtitles < Zype::BaseModel
@@ -1,4 +1,6 @@
1
1
  module Zype
2
+ # Read more at https://docs.zype.com/v1.0/reference#videos
3
+ #
2
4
  # @since 0.4.0
3
5
  class Videos < Zype::BaseModel
4
6
  # Adds zobjects to video
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zype
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zype
@@ -64,9 +64,12 @@ files:
64
64
  - lib/zype/configuration.rb
65
65
  - lib/zype/models/apps.rb
66
66
  - lib/zype/models/categories.rb
67
+ - lib/zype/models/device_categories.rb
68
+ - lib/zype/models/devices.rb
67
69
  - lib/zype/models/encoders.rb
68
70
  - lib/zype/models/live_events.rb
69
71
  - lib/zype/models/playlists.rb
72
+ - lib/zype/models/program_guides.rb
70
73
  - lib/zype/models/subtitle_playlists.rb
71
74
  - lib/zype/models/subtitles.rb
72
75
  - lib/zype/models/videos.rb