Class: FastpixClient::Models::Components::AudioTrack

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

Overview

A media consists of different media tracks, like video, audio, and subtitle, all combined.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id: nil, type: nil, status: nil, language_name: nil, language_code: nil) ⇒ AudioTrack

Returns a new instance of AudioTrack.



29
30
31
32
33
34
35
# File 'lib/fastpix_client/models/components/audiotrack.rb', line 29

def initialize(id: nil, type: nil, status: nil, language_name: nil, language_code: nil)
  @id = id
  @type = type
  @status = status
  @language_name = language_name
  @language_code = language_code
end

Instance Method Details

#==(other) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/fastpix_client/models/components/audiotrack.rb', line 38

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @type == other.type
  return false unless @status == other.status
  return false unless @language_name == other.language_name
  return false unless @language_code == other.language_code
  true
end