Class: Google::Apis::MybusinessbusinessinformationV1::StructuredServiceItem
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::StructuredServiceItem
- 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
-
#description ⇒ String
Optional.
-
#service_type_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StructuredServiceItem
constructor
A new instance of StructuredServiceItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StructuredServiceItem
Returns a new instance of StructuredServiceItem.
1780 1781 1782 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1780 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. Description of structured service item. The character limit is 300.
Corresponds to the JSON property description
1771 1772 1773 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1771 def description @description end |
#service_type_id ⇒ String
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
1778 1779 1780 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1778 def service_type_id @service_type_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1785 1786 1787 1788 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1785 def update!(**args) @description = args[:description] if args.key?(:description) @service_type_id = args[:service_type_id] if args.key?(:service_type_id) end |