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



836
837
838
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 836

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)


824
825
826
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 824

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



834
835
836
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 834

def places
  @places
end

#radiusGoogle::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