Class: Google::Apis::YoutubeV3::I18nLanguageSnippet

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

Basic details about an i18n language, such as language code and human-readable name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ I18nLanguageSnippet

Returns a new instance of I18nLanguageSnippet.



3079
3080
3081
# File 'lib/google/apis/youtube_v3/classes.rb', line 3079

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

Instance Attribute Details

#hlString

A short BCP-47 code that uniquely identifies a language. Corresponds to the JSON property hl

Returns:

  • (String)


3072
3073
3074
# File 'lib/google/apis/youtube_v3/classes.rb', line 3072

def hl
  @hl
end

#nameString

The human-readable name of the language in the language itself. Corresponds to the JSON property name

Returns:

  • (String)


3077
3078
3079
# File 'lib/google/apis/youtube_v3/classes.rb', line 3077

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3084
3085
3086
3087
# File 'lib/google/apis/youtube_v3/classes.rb', line 3084

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