Class: Google::Apis::MybusinessbusinessinformationV1::Label

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

Label to be used when displaying the price list, section, or item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Label

Returns a new instance of Label.



598
599
600
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 598

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

Instance Attribute Details

#descriptionString

Optional. Description of the price list, section, or item. Corresponds to the JSON property description

Returns:

  • (String)


585
586
587
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 585

def description
  @description
end

#display_nameString

Required. Display name for the price list, section, or item. Corresponds to the JSON property displayName

Returns:

  • (String)


590
591
592
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 590

def display_name
  @display_name
end

#language_codeString

Optional. The BCP-47 language code that these strings apply for. Only one set of labels may be set per language. Corresponds to the JSON property languageCode

Returns:

  • (String)


596
597
598
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 596

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



603
604
605
606
607
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 603

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