Class: FastpixApiSDK::Models::Components::PlaybackIds

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_api_sdk/models/components/playbackids.rb

Overview

A collection of Playback ID objects utilized for crafting HLS playback urls.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(id: nil, access_policy: nil) ⇒ PlaybackIds

Returns a new instance of PlaybackIds.



22
23
24
25
# File 'lib/fastpix_api_sdk/models/components/playbackids.rb', line 22

def initialize(id: nil, access_policy: nil)
  @id = id
  @access_policy = access_policy
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
# File 'lib/fastpix_api_sdk/models/components/playbackids.rb', line 28

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @access_policy == other.access_policy
  true
end