Class: Google::Apis::MybusinessV3::ServiceAreaBusiness

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServiceAreaBusiness

Returns a new instance of ServiceAreaBusiness



1683
1684
1685
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1683

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#business_typeString

Indicates the type of the service area business. Corresponds to the JSON property businessType

Returns:

  • (String)


1671
1672
1673
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1671

def business_type
  @business_type
end

#placesGoogle::Apis::MybusinessV3::Places

Defines the union of areas represented by a set of places. Corresponds to the JSON property places



1676
1677
1678
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1676

def places
  @places
end

#radiusGoogle::Apis::MybusinessV3::PointRadius

A radius around a particular point (latitude/longitude). Corresponds to the JSON property radius



1681
1682
1683
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1681

def radius
  @radius
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1688
1689
1690
1691
1692
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1688

def update!(**args)
  @business_type = args[:business_type] if args.key?(:business_type)
  @places = args[:places] if args.key?(:places)
  @radius = args[:radius] if args.key?(:radius)
end