Class: FastpixApiSDK::Models::Components::VideoInput

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_api_sdk/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:, url:, start_time: nil, end_time: nil, intro_url: nil, outro_url: nil, expunge_segments: nil, segments: nil) ⇒ VideoInput

Returns a new instance of VideoInput.



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

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

Instance Method Details

#==(other) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/fastpix_api_sdk/models/components/videoinput.rb', line 53

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 @start_time == other.start_time
  return false unless @end_time == other.end_time
  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