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, synthesise

Instance Attribute Details

#filenameString (readonly)



1658
1659
1660
# File 'lib/discordrb/data.rb', line 1658

def filename
  @filename
end

#heightInteger? (readonly)



1667
1668
1669
# File 'lib/discordrb/data.rb', line 1667

def height
  @height
end

#messageMessage (readonly)



1648
1649
1650
# File 'lib/discordrb/data.rb', line 1648

def message
  @message
end

#proxy_urlString (readonly)



1655
1656
1657
# File 'lib/discordrb/data.rb', line 1655

def proxy_url
  @proxy_url
end

#sizeInteger (readonly)



1661
1662
1663
# File 'lib/discordrb/data.rb', line 1661

def size
  @size
end

#urlString (readonly)



1651
1652
1653
# File 'lib/discordrb/data.rb', line 1651

def url
  @url
end

#widthInteger? (readonly)



1664
1665
1666
# File 'lib/discordrb/data.rb', line 1664

def width
  @width
end

Instance Method Details

#image?true, false



1685
1686
1687
# File 'lib/discordrb/data.rb', line 1685

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