class BotFramework::Place

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

Attributes

address[RW]

Address of the place (may be `string` or complex object of type `PostalAddress`)

geo[RW]

Geo coordinates of the place (may be complex object of type `GeoCoordinates` or `GeoShape`)

has_map[RW]

Map to the place (may be `string` (URL) or complex object of type `Map`)

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/place.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.address = attributes[:address] if attributes.key?(:address)

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

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

  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/place.rb, line 20
def self.swagger_types
  {
    address: :Object,
    geo: :Object,
    has_map: :Object,
    type: :String,
    name: :String
  }
end

Public Instance Methods

list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properies with the reasons

# File lib/bot_framework/models/place.rb, line 51
def list_invalid_properties
  invalid_properties = []
  invalid_properties
end