Class: Google::Apis::YoutubePartnerV1::Claim::MatchInfo::LongestMatch
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Claim::MatchInfo::LongestMatch
- 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
-
#duration_secs ⇒ Fixnum
The duration of the longest match between the reference and the user video.
-
#reference_offset ⇒ Fixnum
The offset in seconds into the reference at which the longest match began.
-
#user_video_offset ⇒ Fixnum
The offset in seconds into the user video at which the longest match began.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LongestMatch
constructor
A new instance of LongestMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LongestMatch
Returns a new instance of LongestMatch.
926 927 928 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 926 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration_secs ⇒ Fixnum
The duration of the longest match between the reference and the user video.
Corresponds to the JSON property durationSecs
914 915 916 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 914 def duration_secs @duration_secs end |
#reference_offset ⇒ Fixnum
The offset in seconds into the reference at which the longest match began.
Corresponds to the JSON property referenceOffset
919 920 921 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 919 def reference_offset @reference_offset end |
#user_video_offset ⇒ Fixnum
The offset in seconds into the user video at which the longest match began.
Corresponds to the JSON property userVideoOffset
924 925 926 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 924 def user_video_offset @user_video_offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
931 932 933 934 935 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 931 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 |