Class: Google::Apis::YoutubeV3::VideoAbuseReportSecondaryReason

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

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

Returns a new instance of VideoAbuseReportSecondaryReason.



7611
7612
7613
# File 'generated/google/apis/youtube_v3/classes.rb', line 7611

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

Instance Attribute Details

#idString

The ID of this abuse report secondary reason. Corresponds to the JSON property id

Returns:

  • (String)


7604
7605
7606
# File 'generated/google/apis/youtube_v3/classes.rb', line 7604

def id
  @id
end

#labelString

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

Returns:

  • (String)


7609
7610
7611
# File 'generated/google/apis/youtube_v3/classes.rb', line 7609

def label
  @label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7616
7617
7618
7619
# File 'generated/google/apis/youtube_v3/classes.rb', line 7616

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