Class: Zype::Manifests

Inherits:
BaseModel show all
Defined in:
lib/zype/models/manifests.rb

Overview

This class does not support all, create, update or delete. To use this class, you must set Zype.configuration.player_host. Read more at docs.zype.com/v1.0/reference#vod-manifests

Since:

  • 0.9.0

Constant Summary

Constants inherited from BaseModel

BaseModel::ACCEPTED_KEYS

Instance Attribute Summary

Attributes inherited from BaseModel

#client

Instance Method Summary collapse

Methods inherited from BaseModel

#all, #auth=, #create, #delete, #initialize, #update

Constructor Details

This class inherits a constructor from Zype::BaseModel

Instance Method Details

#find(id:) ⇒ String

Returns contents of the manifest file.

Parameters:

  • id (String)

    the ID of the video

Returns:

  • (String)

    contents of the m3u8 manifest file

Since:

  • 0.9.0



18
19
20
# File 'lib/zype/models/manifests.rb', line 18

def find(id:)
  client.execute(method: :get, path: "/manifest/#{id}.m3u8")
end