Class: Google::Apis::YoutubePartnerV1::Claim::MatchInfo::LongestMatch

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb

Overview

Details of the longest match between the reference and the user video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LongestMatch

Returns a new instance of LongestMatch



959
960
961
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 959

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#duration_secsFixnum

The duration of the longest match between the reference and the user video. Corresponds to the JSON property durationSecs

Returns:

  • (Fixnum)


947
948
949
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 947

def duration_secs
  @duration_secs
end

#reference_offsetFixnum

The offset in seconds into the reference at which the longest match began. Corresponds to the JSON property referenceOffset

Returns:

  • (Fixnum)


952
953
954
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 952

def reference_offset
  @reference_offset
end

#user_video_offsetFixnum

The offset in seconds into the user video at which the longest match began. Corresponds to the JSON property userVideoOffset

Returns:

  • (Fixnum)


957
958
959
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 957

def user_video_offset
  @user_video_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



964
965
966
967
968
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 964

def update!(**args)
  @duration_secs = args[:duration_secs] if args.key?(:duration_secs)
  @reference_offset = args[:reference_offset] if args.key?(:reference_offset)
  @user_video_offset = args[:user_video_offset] if args.key?(:user_video_offset)
end