class BotFramework::GeoCoordinates

GeoCoordinates (entity type: "https://schema.org/GeoCoordinates")

Attributes

elevation[RW]

Elevation of the location [WGS 84](en.wikipedia.org/wiki/World_Geodetic_System)

latitude[RW]

Latitude of the location [WGS 84](en.wikipedia.org/wiki/World_Geodetic_System)

longitude[RW]

Longitude of the location [WGS 84](en.wikipedia.org/wiki/World_Geodetic_System)

name[RW]

The name of the thing

type[RW]

The type of the thing

Public Class Methods

new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/bot_framework/models/geo_coordinates.rb, line 32
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.elevation = attributes[:elevation] if attributes.key?(:elevation)

  self.latitude = attributes[:latitude] if attributes.key?(:latitude)

  self.longitude = attributes[:longitude] if attributes.key?(:longitude)

  self.type = attributes[:type] if attributes.key?(:type)

  self.name = attributes[:name] if attributes.key?(:name)
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/bot_framework/models/geo_coordinates.rb, line 20
def self.swagger_types
  {
    elevation: :Float,
    latitude: :Float,
    longitude: :Float,
    type: :String,
    name: :String
  }
end