Class: FastpixApiSDK::Models::Components::SubtitleInput
- Inherits:
-
Object
- Object
- FastpixApiSDK::Models::Components::SubtitleInput
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_api_sdk/models/components/subtitleinput.rb
Overview
Generates subtitle files for audio/video files.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type:, url:, language_name:, language_code:) ⇒ SubtitleInput
constructor
A new instance of SubtitleInput.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(type:, url:, language_name:, language_code:) ⇒ SubtitleInput
Returns a new instance of SubtitleInput.
28 29 30 31 32 33 |
# File 'lib/fastpix_api_sdk/models/components/subtitleinput.rb', line 28 def initialize(type:, url:, language_name:, language_code:) @type = type @url = url @language_name = language_name @language_code = language_code end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/fastpix_api_sdk/models/components/subtitleinput.rb', line 36 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 |