Class: FastpixClient::Models::Components::SubtitleInput

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

Overview

Generates subtitle files for audio/video files.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type:, url:, language_name:, language_code: Models::Components::LanguageCode::EN_US) ⇒ SubtitleInput

Returns a new instance of SubtitleInput.



26
27
28
29
30
31
# File 'lib/fastpix_client/models/components/subtitleinput.rb', line 26

def initialize(type:, url:, language_name:, language_code: Models::Components::LanguageCode::EN_US)
  @type = type
  @url = url
  @language_name = language_name
  @language_code = language_code
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/fastpix_client/models/components/subtitleinput.rb', line 34

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