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.



1266
1267
1268
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1266

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)


1253
1254
1255
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1253

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)


1258
1259
1260
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1258

def spoken
  @spoken
end

#spoken_exceptionString

Spoken exception. Corresponds to the JSON property spokenException

Returns:

  • (String)


1264
1265
1266
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1264

def spoken_exception
  @spoken_exception
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1271
1272
1273
1274
1275
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1271

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