Class: Google::Apis::YoutubeV3::LocalizedProperty

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

Returns a new instance of LocalizedProperty.


5251
5252
5253
# File 'generated/google/apis/youtube_v3/classes.rb', line 5251

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

Instance Attribute Details

#defaultString

Corresponds to the JSON property default

Returns:

  • (String)

5239
5240
5241
# File 'generated/google/apis/youtube_v3/classes.rb', line 5239

def default
  @default
end

#default_languageGoogle::Apis::YoutubeV3::LanguageTag

The language of the default property. Corresponds to the JSON property defaultLanguage


5244
5245
5246
# File 'generated/google/apis/youtube_v3/classes.rb', line 5244

def default_language
  @default_language
end

#localizedArray<Google::Apis::YoutubeV3::LocalizedString>

Corresponds to the JSON property localized


5249
5250
5251
# File 'generated/google/apis/youtube_v3/classes.rb', line 5249

def localized
  @localized
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5256
5257
5258
5259
5260
# File 'generated/google/apis/youtube_v3/classes.rb', line 5256

def update!(**args)
  @default = args[:default] if args.key?(:default)
  @default_language = args[:default_language] if args.key?(:default_language)
  @localized = args[:localized] if args.key?(:localized)
end