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.



1801
1802
1803
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1801

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)


1792
1793
1794
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1792

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)


1799
1800
1801
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1799

def service_type_id
  @service_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1806
1807
1808
1809
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1806

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