struct Slack::EventData::Attachment

Included Modules

Defined in:

slack/events/event_data/attachment.cr

Constant Summary

ASSIGNED_TYPES = [fallback : String, from_url : String | ::Nil, id : Int16, original_url : String | ::Nil, service_icon : String | ::Nil, service_name : String | ::Nil, service_url : String | ::Nil, text : String | ::Nil, thumb_height : Int64 | ::Nil, thumb_url : String | ::Nil, thumb_width : Int64 | ::Nil, title : String | ::Nil, title_link : String | ::Nil, video_html : String | ::Nil, video_html_height : Int64 | ::Nil, video_html_width : Int64 | ::Nil] of TypeDeclaration

Constructors

Instance Method Summary

Constructor Detail

def self.new(fallback : String, id : Int16, from_url : String | Nil = nil, original_url : String | Nil = nil, service_icon : String | Nil = nil, service_name : String | Nil = nil, service_url : String | Nil = nil, text : String | Nil = nil, thumb_height : Int64 | Nil = nil, thumb_url : String | Nil = nil, thumb_width : Int64 | Nil = nil, title : String | Nil = nil, title_link : String | Nil = nil, video_html : String | Nil = nil, video_html_height : Int64 | Nil = nil, video_html_width : Int64 | Nil = nil) #

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def fallback : String #

def fallback=(fallback : String) #

def from_url : String | Nil #

def from_url=(from_url : String | Nil) #

def id : Int16 #

def id=(id : Int16) #

def original_url : String | Nil #

def original_url=(original_url : String | Nil) #

def service_icon : String | Nil #

def service_icon=(service_icon : String | Nil) #

def service_name : String | Nil #

def service_name=(service_name : String | Nil) #

def service_url : String | Nil #

def service_url=(service_url : String | Nil) #

def text : String | Nil #

def text=(text : String | Nil) #

def thumb_height : Int64 | Nil #

def thumb_height=(thumb_height : Int64 | Nil) #

def thumb_url : String | Nil #

def thumb_url=(thumb_url : String | Nil) #

def thumb_width : Int64 | Nil #

def thumb_width=(thumb_width : Int64 | Nil) #

def title : String | Nil #

def title=(title : String | Nil) #

def title_link : String | Nil #

def title_link=(title_link : String | Nil) #

def video_html : String | Nil #

def video_html=(video_html : String | Nil) #

def video_html_height : Int64 | Nil #

def video_html_height=(video_html_height : Int64 | Nil) #

def video_html_width : Int64 | Nil #

def video_html_width=(video_html_width : Int64 | Nil) #