class BotFramework::AttachmentView

Attachment View name and size

Attributes

size[RW]

Name of the attachment

view_id[RW]

content type of the attachmnet

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/attachment_view.rb, line 20
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.view_id = attributes[:viewId] if attributes.key?(:viewId)

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

Attribute type mapping.

# File lib/bot_framework/models/attachment_view.rb, line 11
def self.swagger_types
  {
    view_id: :String,
    size: :Integer
  }
end