Class: FastpixApiSDK::Models::Components::Track
- Inherits:
-
Object
- Object
- FastpixApiSDK::Models::Components::Track
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_api_sdk/models/components/track.rb
Overview
A media consists of different media tracks, like video, audio, and subtitle, all combined.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type:, id: nil, width: nil, height: nil, frame_rate: nil, closed_captions: nil) ⇒ Track
constructor
A new instance of Track.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(type:, id: nil, width: nil, height: nil, frame_rate: nil, closed_captions: nil) ⇒ Track
Returns a new instance of Track.
30 31 32 33 34 35 36 37 |
# File 'lib/fastpix_api_sdk/models/components/track.rb', line 30 def initialize(type:, id: nil, width: nil, height: nil, frame_rate: nil, closed_captions: nil) @type = type @id = id @width = width @height = height @frame_rate = frame_rate @closed_captions = closed_captions end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/fastpix_api_sdk/models/components/track.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @type == other.type return false unless @id == other.id return false unless @width == other.width return false unless @height == other.height return false unless @frame_rate == other.frame_rate return false unless @closed_captions == other.closed_captions true end |