Class: Google::Apis::YoutubeV3::SuperChatEvent

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

Overview

A __superChatEvent__ resource represents a Super Chat purchase on a YouTube channel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SuperChatEvent

Returns a new instance of SuperChatEvent.



7114
7115
7116
# File 'lib/google/apis/youtube_v3/classes.rb', line 7114

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


7096
7097
7098
# File 'lib/google/apis/youtube_v3/classes.rb', line 7096

def etag
  @etag
end

#idString

The ID that YouTube assigns to uniquely identify the Super Chat event. Corresponds to the JSON property id

Returns:

  • (String)


7101
7102
7103
# File 'lib/google/apis/youtube_v3/classes.rb', line 7101

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "youtube# superChatEvent". Corresponds to the JSON property kind

Returns:

  • (String)


7107
7108
7109
# File 'lib/google/apis/youtube_v3/classes.rb', line 7107

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::SuperChatEventSnippet

The snippet object contains basic details about the Super Chat event. Corresponds to the JSON property snippet



7112
7113
7114
# File 'lib/google/apis/youtube_v3/classes.rb', line 7112

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7119
7120
7121
7122
7123
7124
# File 'lib/google/apis/youtube_v3/classes.rb', line 7119

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