Class: Google::Apis::YoutubeV3::AbuseReport

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

Constructor Details

#initialize(**args) ⇒ AbuseReport

Returns a new instance of AbuseReport.



49
50
51
# File 'generated/google/apis/youtube_v3/classes.rb', line 49

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

Instance Attribute Details

#abuse_typesArray<Google::Apis::YoutubeV3::AbuseType>

Corresponds to the JSON property abuseTypes



32
33
34
# File 'generated/google/apis/youtube_v3/classes.rb', line 32

def abuse_types
  @abuse_types
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/youtube_v3/classes.rb', line 37

def description
  @description
end

Corresponds to the JSON property relatedEntities



42
43
44
# File 'generated/google/apis/youtube_v3/classes.rb', line 42

def related_entities
  @related_entities
end

#subjectGoogle::Apis::YoutubeV3::Entity

Corresponds to the JSON property subject



47
48
49
# File 'generated/google/apis/youtube_v3/classes.rb', line 47

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



54
55
56
57
58
59
# File 'generated/google/apis/youtube_v3/classes.rb', line 54

def update!(**args)
  @abuse_types = args[:abuse_types] if args.key?(:abuse_types)
  @description = args[:description] if args.key?(:description)
  @related_entities = args[:related_entities] if args.key?(:related_entities)
  @subject = args[:subject] if args.key?(:subject)
end