class BotFramework::Fact
Set of key-value pairs. Advantage of this section is that key and value properties will be rendered with default style information with some delimiter between them. So there is no need for developer to specify style information.
Attributes
key[RW]
value[RW]
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/fact.rb, line 18 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.key = attributes[:key] if attributes.key?(:key) self.value = attributes[:value] if attributes.key?(:value) end
swagger_types()
click to toggle source
Attribute type mapping.
# File lib/bot_framework/models/fact.rb, line 9 def self.swagger_types { key: :String, value: :String } end