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.
1451 1452 1453 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1451 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
1438 1439 1440 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1438 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
1443 1444 1445 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1443 def spoken @spoken end |
#spoken_exception ⇒ String
Spoken exception.
Corresponds to the JSON property spokenException
1449 1450 1451 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1449 def spoken_exception @spoken_exception end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1456 1457 1458 1459 1460 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1456 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 |