Class: Google::Apis::MybusinessbusinessinformationV1::ChainName

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

Overview

Name to be used when displaying the chain.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChainName

Returns a new instance of ChainName.



389
390
391
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 389

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

Instance Attribute Details

#display_nameString

The display name for this chain. Corresponds to the JSON property displayName

Returns:

  • (String)


382
383
384
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 382

def display_name
  @display_name
end

#language_codeString

The BCP 47 code of language of the name. Corresponds to the JSON property languageCode

Returns:

  • (String)


387
388
389
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 387

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
397
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 394

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