class Zype::Players
This class does not support all, create, update or delete methods. Read more at docs.zype.com/v1.0/reference#players
@since 0.10.0
Public Instance Methods
find(id:, format:)
click to toggle source
Retrieve formatted player responses
@param id [String] ID of the video @param format [String] format to return the response in. Valid options are html, js, json @return [Hash|String]
# File lib/zype/models/players.rb, line 18 def find(id:, format:) client.execute(method: :get, path: "/#{path}/#{id}.#{format}") end
Private Instance Methods
client_class()
click to toggle source
# File lib/zype/models/players.rb, line 28 def client_class Zype::PlayerClient end
path()
click to toggle source
# File lib/zype/models/players.rb, line 24 def path @path = 'embed' end