Class: Google::Apis::PartnersV2::LocalizedCompanyInfo

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

Overview

The localized company information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LocalizedCompanyInfo

Returns a new instance of LocalizedCompanyInfo



1433
1434
1435
# File 'generated/google/apis/partners_v2/classes.rb', line 1433

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

Instance Attribute Details

#country_codesArray<String>

List of country codes for the localized company info. Corresponds to the JSON property countryCodes

Returns:

  • (Array<String>)


1414
1415
1416
# File 'generated/google/apis/partners_v2/classes.rb', line 1414

def country_codes
  @country_codes
end

#display_nameString

Localized display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1419
1420
1421
# File 'generated/google/apis/partners_v2/classes.rb', line 1419

def display_name
  @display_name
end

#language_codeString

Language code of the localized company info, as defined by BCP 47 (IETF BCP 47, "Tags for Identifying Languages"). Corresponds to the JSON property languageCode

Returns:

  • (String)


1426
1427
1428
# File 'generated/google/apis/partners_v2/classes.rb', line 1426

def language_code
  @language_code
end

#overviewString

Localized brief description that the company uses to advertise themselves. Corresponds to the JSON property overview

Returns:

  • (String)


1431
1432
1433
# File 'generated/google/apis/partners_v2/classes.rb', line 1431

def overview
  @overview
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1438
1439
1440
1441
1442
1443
# File 'generated/google/apis/partners_v2/classes.rb', line 1438

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