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.



631
632
633
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 631

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)


618
619
620
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 618

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


623
624
625
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 623

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)


629
630
631
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 629

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



636
637
638
639
640
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 636

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