Class: Google::Apis::YoutubeV3::SuperStickerMetadata

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

Returns a new instance of SuperStickerMetadata.



7210
7211
7212
# File 'generated/google/apis/youtube_v3/classes.rb', line 7210

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

Instance Attribute Details

#alt_textString

Internationalized alt text that describes the sticker image and any animation associated with it. Corresponds to the JSON property altText

Returns:

  • (String)


7197
7198
7199
# File 'generated/google/apis/youtube_v3/classes.rb', line 7197

def alt_text
  @alt_text
end

#alt_text_languageString

Specifies the localization language in which the alt text is returned. Corresponds to the JSON property altTextLanguage

Returns:

  • (String)


7202
7203
7204
# File 'generated/google/apis/youtube_v3/classes.rb', line 7202

def alt_text_language
  @alt_text_language
end

#sticker_idString

Unique identifier of the Super Sticker. This is a shorter form of the alt_text that includes pack name and a recognizable characteristic of the sticker. Corresponds to the JSON property stickerId

Returns:

  • (String)


7208
7209
7210
# File 'generated/google/apis/youtube_v3/classes.rb', line 7208

def sticker_id
  @sticker_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7215
7216
7217
7218
7219
# File 'generated/google/apis/youtube_v3/classes.rb', line 7215

def update!(**args)
  @alt_text = args[:alt_text] if args.key?(:alt_text)
  @alt_text_language = args[:alt_text_language] if args.key?(:alt_text_language)
  @sticker_id = args[:sticker_id] if args.key?(:sticker_id)
end