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.



1451
1452
1453
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1451

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)


1438
1439
1440
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1438

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)


1443
1444
1445
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1443

def spoken
  @spoken
end

#spoken_exceptionString

Spoken exception. Corresponds to the JSON property spokenException

Returns:

  • (String)


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