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.



1784
1785
1786
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1784

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)


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

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)


1782
1783
1784
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1782

def service_type_id
  @service_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1789
1790
1791
1792
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1789

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