Class: Google::Apis::MybusinesslodgingV1::LanguageSpoken

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

Overview

Language spoken by at least one staff member.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LanguageSpoken

Returns a new instance of LanguageSpoken.



1449
1450
1451
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1449

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

Instance Attribute Details

#language_codeString

Required. The BCP-47 language code for the spoken language. Currently accepted codes: ar, de, en, es, fil, fr, hi, id, it, ja, ko, nl, pt, ru, vi, yue, zh. Corresponds to the JSON property languageCode

Returns:

  • (String)


1436
1437
1438
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1436

def language_code
  @language_code
end

#spokenBoolean Also known as: spoken?

At least one member of the staff can speak the language. Corresponds to the JSON property spoken

Returns:

  • (Boolean)


1441
1442
1443
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1441

def spoken
  @spoken
end

#spoken_exceptionString

Spoken exception. Corresponds to the JSON property spokenException

Returns:

  • (String)


1447
1448
1449
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1447

def spoken_exception
  @spoken_exception
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1454
1455
1456
1457
1458
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1454

def update!(**args)
  @language_code = args[:language_code] if args.key?(:language_code)
  @spoken = args[:spoken] if args.key?(:spoken)
  @spoken_exception = args[:spoken_exception] if args.key?(:spoken_exception)
end