Class: FastpixClient::Models::Components::VideoInput

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type:, intro_url: nil, outro_url: nil, expunge_segments: nil, segments: nil) ⇒ VideoInput

Returns a new instance of VideoInput.



31
32
33
34
35
36
37
# File 'lib/fastpix_client/models/components/videoinput.rb', line 31

def initialize(type:, intro_url: nil, outro_url: nil, expunge_segments: nil, segments: nil)
  @type = type
  @intro_url = intro_url
  @outro_url = outro_url
  @expunge_segments = expunge_segments
  @segments = segments
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
# File 'lib/fastpix_client/models/components/videoinput.rb', line 40

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @intro_url == other.intro_url
  return false unless @outro_url == other.outro_url
  return false unless @expunge_segments == other.expunge_segments
  return false unless @segments == other.segments
  true
end