Class: Discordrb::Attachment

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/discordrb/data.rb

Overview

An attachment to a message

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Instance Method Summary collapse

Methods included from IDObject

#==, #creation_time

Instance Attribute Details

#filenameString (readonly)



1559
1560
1561
# File 'lib/discordrb/data.rb', line 1559

def filename
  @filename
end

#heightInteger? (readonly)



1568
1569
1570
# File 'lib/discordrb/data.rb', line 1568

def height
  @height
end

#messageMessage (readonly)



1549
1550
1551
# File 'lib/discordrb/data.rb', line 1549

def message
  @message
end

#proxy_urlString (readonly)



1556
1557
1558
# File 'lib/discordrb/data.rb', line 1556

def proxy_url
  @proxy_url
end

#sizeInteger (readonly)



1562
1563
1564
# File 'lib/discordrb/data.rb', line 1562

def size
  @size
end

#urlString (readonly)



1552
1553
1554
# File 'lib/discordrb/data.rb', line 1552

def url
  @url
end

#widthInteger? (readonly)



1565
1566
1567
# File 'lib/discordrb/data.rb', line 1565

def width
  @width
end

Instance Method Details

#image?true, false



1586
1587
1588
# File 'lib/discordrb/data.rb', line 1586

def image?
  !(@width.nil? || @height.nil?)
end