Class: Google::Apis::MybusinessbusinessinformationV1::FreeFormServiceItem

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

Represents a free-form service offered by the merchant. These are services that are not exposed as part of our structure service data. The merchant manually enters the names for of such services via a geomerchant surface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FreeFormServiceItem

Returns a new instance of FreeFormServiceItem.



526
527
528
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 526

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

Instance Attribute Details

#categoryString

Required. This field represents the category name (i.e. the category's stable ID). The category and service_type_id should match the possible combinations provided in the Category message. Corresponds to the JSON property category

Returns:

  • (String)


519
520
521
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 519

def category
  @category
end

#labelGoogle::Apis::MybusinessbusinessinformationV1::Label

Label to be used when displaying the price list, section, or item. Corresponds to the JSON property label



524
525
526
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 524

def label
  @label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



531
532
533
534
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 531

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