class BotFramework::AttachmentInfo
Metdata for an attachment
Attributes
name[RW]
Name of the attachment
type[RW]
ContentType of the attachment
views[RW]
attachment views
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_info.rb, line 24 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.name = attributes[:name] if attributes.key?(:name) self.type = attributes[:type] if attributes.key?(:type) if attributes.key?(:views) if (value = attributes[:views]).is_a?(Array) self.views = value end end end
swagger_types()
click to toggle source
Attribute type mapping.
# File lib/bot_framework/models/attachment_info.rb, line 14 def self.swagger_types { name: :String, type: :String, views: :'Array<AttachmentView>' } end