Class: Zype::VideoEntitlements
- Inherits:
-
Base::Consumers
- Object
- BaseModel
- Base::Consumers
- Zype::VideoEntitlements
- Defined in:
- lib/zype/models/video_entitlements.rb
Overview
Read more at docs.zype.com/v1.0/reference#video-entitlements
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#entitled(video_id:, access_token:) ⇒ Object
Checks if the consumer is entitled to watch the video.
- #path ⇒ Object
Methods inherited from Base::Consumers
#all, #create, #delete, #find, #update
Methods inherited from BaseModel
#all, #auth=, #create, #delete, #find, #initialize, #update
Constructor Details
This class inherits a constructor from Zype::BaseModel
Instance Method Details
#entitled(video_id:, access_token:) ⇒ Object
Checks if the consumer is entitled to watch the video
11 12 13 |
# File 'lib/zype/models/video_entitlements.rb', line 11 def entitled(video_id:, access_token:) client.execute(method: :get, path: "/videos/#{video_id}/entitled", params: { access_token: access_token }) end |
#path ⇒ Object
15 16 17 |
# File 'lib/zype/models/video_entitlements.rb', line 15 def path @path = 'videos' end |