class BotFramework::CardAction
Attributes
image[RW]
URL Picture which will appear on the button, next to text label.
title[RW]
Text description which appear on the button.
type[RW]
Defines the type of action implemented by this button.
value[RW]
Supplementary parameter for action. Content of this property depends on the ActionType
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/card_action.rb, line 28 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) self.title = attributes[:title] if attributes.key?(:title) self.image = attributes[:image] if attributes.key?(:image) self.value = attributes[:value] if attributes.key?(:value) end
swagger_types()
click to toggle source
Attribute mapping from ruby-style variable name to JSON key. Attribute type mapping.
# File lib/bot_framework/models/card_action.rb, line 17 def self.swagger_types { type: :String, title: :String, image: :String, value: :String } end