Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb

Overview

Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details. BusinessAvailabilityAttributes justifications. This shows some attributes a business has that could interest an end user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification

Returns a new instance of GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification.



678
679
680
# File 'lib/google/apis/places_v1/classes.rb', line 678

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

Instance Attribute Details

#deliveryBoolean Also known as: delivery?

If a place provides delivery. Corresponds to the JSON property delivery

Returns:

  • (Boolean)


663
664
665
# File 'lib/google/apis/places_v1/classes.rb', line 663

def delivery
  @delivery
end

#dine_inBoolean Also known as: dine_in?

If a place provides dine-in. Corresponds to the JSON property dineIn

Returns:

  • (Boolean)


669
670
671
# File 'lib/google/apis/places_v1/classes.rb', line 669

def dine_in
  @dine_in
end

#takeoutBoolean Also known as: takeout?

If a place provides takeout. Corresponds to the JSON property takeout

Returns:

  • (Boolean)


675
676
677
# File 'lib/google/apis/places_v1/classes.rb', line 675

def takeout
  @takeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



683
684
685
686
687
# File 'lib/google/apis/places_v1/classes.rb', line 683

def update!(**args)
  @delivery = args[:delivery] if args.key?(:delivery)
  @dine_in = args[:dine_in] if args.key?(:dine_in)
  @takeout = args[:takeout] if args.key?(:takeout)
end