Class: FastpixClient::Models::Components::CreatePlaybackId
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::CreatePlaybackId
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/createplaybackid.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, resolution: nil) ⇒ CreatePlaybackId
constructor
A new instance of CreatePlaybackId.
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, resolution: nil) ⇒ CreatePlaybackId
Returns a new instance of CreatePlaybackId.
25 26 27 28 29 30 |
# File 'lib/fastpix_client/models/components/createplaybackid.rb', line 25 def initialize(id: nil, access_policy: nil, access_restrictions: nil, resolution: nil) @id = id @access_policy = access_policy @access_restrictions = access_restrictions @resolution = resolution end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/fastpix_client/models/components/createplaybackid.rb', line 33 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 return false unless @resolution == other.resolution true end |