Class: Google::Apis::DialogflowV2::GoogleTypeLatLng

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleTypeLatLng

Returns a new instance of GoogleTypeLatLng.



23013
23014
23015
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 23013

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

Instance Attribute Details

#latitudeFloat

Corresponds to the JSON property latitude

Returns:

  • (Float)


23006
23007
23008
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 23006

def latitude
  @latitude
end

#longitudeFloat

Corresponds to the JSON property longitude

Returns:

  • (Float)


23011
23012
23013
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 23011

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23018
23019
23020
23021
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 23018

def update!(**args)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
end