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.com/music-1.mp3', type: Models::Components::AddTrackRequestType::AUDIO, language_code: 'it', language_name: 'Italian', title: nil) ⇒ AddTrackRequest

Returns a new instance of AddTrackRequest.



27
28
29
30
31
32
33
# File 'lib/fastpix_client/models/components/addtrackrequest.rb', line 27

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

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/fastpix_client/models/components/addtrackrequest.rb', line 36

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
  return false unless @title == other.title
  true
end