Class: Google::Apis::MybusinessbusinessinformationV1::StructuredServiceItem

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 structured service offered by the merchant. For eg: toilet_installation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StructuredServiceItem

Returns a new instance of StructuredServiceItem.



1769
1770
1771
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1769

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

Instance Attribute Details

#descriptionString

Optional. Description of structured service item. The character limit is 300. Corresponds to the JSON property description

Returns:

  • (String)


1760
1761
1762
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1760

def description
  @description
end

#service_type_idString

Required. The service_type_id field is a Google provided unique ID that can be found in ServiceType. This information is provided by BatchGetCategories rpc service. Corresponds to the JSON property serviceTypeId

Returns:

  • (String)


1767
1768
1769
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1767

def service_type_id
  @service_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1774
1775
1776
1777
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1774

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