Class: FastpixClient::Models::Components::PullVideoInput

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(start_time: nil, end_time: nil, intro_url: nil, outro_url: nil, expunge_segments: nil, segments: nil, type: 'video', url: 'https://static.fastpix.io/fp-sample-video.mp4') ⇒ PullVideoInput

Returns a new instance of PullVideoInput.



46
47
48
49
50
51
52
53
54
55
# File 'lib/fastpix_client/models/components/pullvideoinput.rb', line 46

def initialize(start_time: nil, end_time: nil, intro_url: nil, outro_url: nil, expunge_segments: nil, segments: nil, type: 'video', url: 'https://static.fastpix.io/fp-sample-video.mp4')
  @start_time = start_time
  @end_time = end_time
  @intro_url = intro_url
  @outro_url = outro_url
  @expunge_segments = expunge_segments
  @segments = segments
  @type = type
  @url = url
end

Instance Method Details

#==(other) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/fastpix_client/models/components/pullvideoinput.rb', line 58

def ==(other)
  return false unless other.is_a? self.class
  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
  return false unless @type == other.type
  return false unless @url == other.url
  true
end