Class: Google::Apis::MybusinessV3::ServiceAreaBusiness
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::ServiceAreaBusiness
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb
Overview
Service area businesses provide their service at the customer's location (for example a locksmith or plumber).
Instance Attribute Summary collapse
-
#business_type ⇒ String
Indicates the type of the service area business.
-
#places ⇒ Google::Apis::MybusinessV3::Places
Defines the union of areas represented by a set of places.
-
#radius ⇒ Google::Apis::MybusinessV3::PointRadius
A radius around a particular point (latitude/longitude).
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceAreaBusiness
constructor
A new instance of ServiceAreaBusiness.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceAreaBusiness
Returns a new instance of ServiceAreaBusiness
836 837 838 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 836 def initialize(**args) update!(**args) end |
Instance Attribute Details
#business_type ⇒ String
Indicates the type of the service area
business.
Corresponds to the JSON property businessType
824 825 826 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 824 def business_type @business_type end |
#places ⇒ Google::Apis::MybusinessV3::Places
Defines the union of areas represented by a set of places.
Corresponds to the JSON property places
834 835 836 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 834 def places @places end |
#radius ⇒ Google::Apis::MybusinessV3::PointRadius
A radius around a particular point (latitude/longitude).
Corresponds to the JSON property radius
829 830 831 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 829 def radius @radius end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
841 842 843 844 845 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 841 def update!(**args) @business_type = args[:business_type] if args.key?(:business_type) @radius = args[:radius] if args.key?(:radius) @places = args[:places] if args.key?(:places) end |