Class: Google::Apis::MybusinesslodgingV1::LanguageSpoken
- Inherits:
-
Object
- Object
- Google::Apis::MybusinesslodgingV1::LanguageSpoken
- 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
-
#language_code ⇒ String
Required.
-
#spoken ⇒ Boolean
(also: #spoken?)
At least one member of the staff can speak the language.
-
#spoken_exception ⇒ String
Spoken exception.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LanguageSpoken
constructor
A new instance of LanguageSpoken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LanguageSpoken
Returns a new instance of LanguageSpoken.
1434 1435 1436 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
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
1421 1422 1423 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1421 def language_code @language_code end |
#spoken ⇒ Boolean Also known as: spoken?
At least one member of the staff can speak the language.
Corresponds to the JSON property spoken
1426 1427 1428 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1426 def spoken @spoken end |
#spoken_exception ⇒ String
Spoken exception.
Corresponds to the JSON property spokenException
1432 1433 1434 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1432 def spoken_exception @spoken_exception end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1439 1440 1441 1442 1443 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1439 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 |