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.



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

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)


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

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)


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

def service_type_id
  @service_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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