Class: Google::Apis::YoutubeV3::I18nLanguage

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

An i18nLanguage resource identifies a UI language currently supported by YouTube.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ I18nLanguage

Returns a new instance of I18nLanguage.



2947
2948
2949
# File 'lib/google/apis/youtube_v3/classes.rb', line 2947

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


2928
2929
2930
# File 'lib/google/apis/youtube_v3/classes.rb', line 2928

def etag
  @etag
end

#idString

The ID that YouTube uses to uniquely identify the i18n language. Corresponds to the JSON property id

Returns:

  • (String)


2933
2934
2935
# File 'lib/google/apis/youtube_v3/classes.rb', line 2933

def id
  @id
end

#kindString

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

Returns:

  • (String)


2939
2940
2941
# File 'lib/google/apis/youtube_v3/classes.rb', line 2939

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::I18nLanguageSnippet

Basic details about an i18n language, such as language code and human-readable name. Corresponds to the JSON property snippet



2945
2946
2947
# File 'lib/google/apis/youtube_v3/classes.rb', line 2945

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2952
2953
2954
2955
2956
2957
# File 'lib/google/apis/youtube_v3/classes.rb', line 2952

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