class BotFramework::Entity

Object of schema.org types

Attributes

type[RW]

Entity Type (typically from schema.org types)

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/entity.rb, line 17
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.type = attributes[:type] if attributes.key?(:type)
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/bot_framework/models/entity.rb, line 9
def self.swagger_types
  {
    type: :String
  }
end