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.



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

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)


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

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



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

def label
  @label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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