Class: Google::Apis::YoutubeV3::VideoAbuseReportReasonSnippet

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

Overview

Basic details about a video category, such as its localized title.

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) ⇒ VideoAbuseReportReasonSnippet

Returns a new instance of VideoAbuseReportReasonSnippet.



7056
7057
7058
# File 'generated/google/apis/youtube_v3/classes.rb', line 7056

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

Instance Attribute Details

#labelString

The localized label belonging to this abuse report reason. Corresponds to the JSON property label

Returns:

  • (String)


7048
7049
7050
# File 'generated/google/apis/youtube_v3/classes.rb', line 7048

def label
  @label
end

#secondary_reasonsArray<Google::Apis::YoutubeV3::VideoAbuseReportSecondaryReason>

The secondary reasons associated with this reason, if any are available. ( There might be 0 or more.) Corresponds to the JSON property secondaryReasons



7054
7055
7056
# File 'generated/google/apis/youtube_v3/classes.rb', line 7054

def secondary_reasons
  @secondary_reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7061
7062
7063
7064
# File 'generated/google/apis/youtube_v3/classes.rb', line 7061

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