Class: FastpixClient::Models::Components::AddTrackRequest

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

Overview

Contains details about the track being added to the media file.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(url: 'https://static.fastpix.io/music-1.mp3', type: Models::Components::AddTrackRequestType::AUDIO, language_code: 'it', language_name: 'Italian') ⇒ AddTrackRequest

Returns a new instance of AddTrackRequest.



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

def initialize(url: 'https://static.fastpix.io/music-1.mp3', type: Models::Components::AddTrackRequestType::AUDIO, language_code: 'it', language_name: 'Italian')
  @url = url
  @type = type
  @language_code = language_code
  @language_name = language_name
end

Instance Method Details

#==(other) ⇒ Object



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

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