Module: Rubycord::ServerAttributes

Included in:
Light::UltraLightServer, Server
Defined in:
lib/rubycord/data/server.rb

Overview

Basic attributes a server should have

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#icon_idString (readonly)



8
9
10
# File 'lib/rubycord/data/server.rb', line 8

def icon_id
  @icon_id
end

#nameString (readonly)



5
6
7
# File 'lib/rubycord/data/server.rb', line 5

def name
  @name
end

Instance Method Details

#icon_urlString

Utility function to get the URL for the icon image



12
13
14
15
16
# File 'lib/rubycord/data/server.rb', line 12

def icon_url
  return nil unless @icon_id

  API.icon_url(@id, @icon_id)
end