Class: FastpixClient::Models::Components::VideoTrack
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::VideoTrack
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/videotrack.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, width: nil, height: nil, frame_rate: nil, status: nil) ⇒ VideoTrack
constructor
A new instance of VideoTrack.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id: nil, type: nil, width: nil, height: nil, frame_rate: nil, status: nil) ⇒ VideoTrack
Returns a new instance of VideoTrack.
29 30 31 32 33 34 35 36 |
# File 'lib/fastpix_client/models/components/videotrack.rb', line 29 def initialize(id: nil, type: nil, width: nil, height: nil, frame_rate: nil, status: nil) @id = id @type = type @width = width @height = height @frame_rate = frame_rate @status = status end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/fastpix_client/models/components/videotrack.rb', line 39 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 @width == other.width return false unless @height == other.height return false unless @frame_rate == other.frame_rate return false unless @status == other.status true end |