Sha256: 1d2a59df70ee30f046b8cdc757fc7a250b5cb293ebce76ec06d017c713b68611
Contents?: true
Size: 767 Bytes
Versions: 13
Compression:
Stored size: 767 Bytes
Contents
module Zype # This class does not support all, create, update or delete. # To use this class, you must set Zype.configuration.player_host. # Read more at https://docs.zype.com/v1.0/reference#vod-manifests # # @since 0.9.0 class Manifests < Zype::BaseModel %i[all create update delete].each do |mtd| send(:define_method, mtd) do raise NoMethodError end end # Returns contents of the manifest file. # # @param id [String] the ID of the video # @return [String] contents of the m3u8 manifest file def find(id:) client.execute(method: :get, path: "/manifest/#{id}.m3u8") end private def path @path = 'manifest' end def client_class Zype::PlayerClient end end end
Version data entries
13 entries across 13 versions & 1 rubygems