Class: FastpixApiSDK::Models::Components::PlaybackId
- Inherits:
-
Object
- Object
- FastpixApiSDK::Models::Components::PlaybackId
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_api_sdk/models/components/playbackid.rb
Overview
A collection of Playback ID objects utilized for crafting HLS playback urls.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id: nil, access_policy: nil, access_restrictions: nil) ⇒ PlaybackId
constructor
A new instance of PlaybackId.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id: nil, access_policy: nil, access_restrictions: nil) ⇒ PlaybackId
Returns a new instance of PlaybackId.
24 25 26 27 28 |
# File 'lib/fastpix_api_sdk/models/components/playbackid.rb', line 24 def initialize(id: nil, access_policy: nil, access_restrictions: nil) @id = id @access_policy = access_policy @access_restrictions = access_restrictions end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/fastpix_api_sdk/models/components/playbackid.rb', line 31 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @access_policy == other.access_policy return false unless @access_restrictions == other.access_restrictions true end |