class BotFramework::CardImage

Attributes

alt[RW]

Image description intended for screen readers

tap[RW]

Action assigned to specific Attachment.E.g.navigate to specific URL or play/open media content

url[RW]

URL Thumbnail image for major content property.

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_image.rb, line 23
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.url = attributes[:url] if attributes.key?(:url)

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

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

Attribute type mapping.

# File lib/bot_framework/models/card_image.rb, line 13
def self.swagger_types
  {
    url: :String,
    alt: :String,
    tap: :CardAction
  }
end