Class: FastpixClient::Models::Components::SubtitleTrack
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::SubtitleTrack
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/subtitletrack.rb
Overview
A media consists of different media tracks, like video, audio, and subtitle, all combined.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id: nil, type: nil, status: nil, language_name: nil, language_code: nil) ⇒ SubtitleTrack
constructor
A new instance of SubtitleTrack.
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) ⇒ SubtitleTrack
Returns a new instance of SubtitleTrack.
29 30 31 32 33 34 35 |
# File 'lib/fastpix_client/models/components/subtitletrack.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/subtitletrack.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 |