Class: Google::Apis::YoutubePartnerV1::TotalMatch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TotalMatch

Returns a new instance of TotalMatch.



4017
4018
4019
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4017

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

Instance Attribute Details

#reference_duration_secsFixnum

The total amount of content in the reference which matched the user video in seconds. Corresponds to the JSON property referenceDurationSecs

Returns:

  • (Fixnum)


4009
4010
4011
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4009

def reference_duration_secs
  @reference_duration_secs
end

#user_video_duration_secsFixnum

The total amount of content in the user video which matched the reference in seconds. Corresponds to the JSON property userVideoDurationSecs

Returns:

  • (Fixnum)


4015
4016
4017
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4015

def user_video_duration_secs
  @user_video_duration_secs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4022
4023
4024
4025
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4022

def update!(**args)
  @reference_duration_secs = args[:reference_duration_secs] if args.key?(:reference_duration_secs)
  @user_video_duration_secs = args[:user_video_duration_secs] if args.key?(:user_video_duration_secs)
end