Class: MijDiscord::Data::InviteServer

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/mij-discord/data/invite.rb

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Instance Method Summary collapse

Methods included from IDObject

#==, #creation_time, #hash, synthesize

Constructor Details

#initialize(data, bot) ⇒ InviteServer

Returns a new instance of InviteServer.



27
28
29
30
31
32
33
# File 'lib/mij-discord/data/invite.rb', line 27

def initialize(data, bot)
  @bot = bot

  @id = data['id'].to_i
  @name = data['name']
  @splash_hash = data['splash_hash']
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



23
24
25
# File 'lib/mij-discord/data/invite.rb', line 23

def name
  @name
end

#splash_hashObject (readonly)

Returns the value of attribute splash_hash.



25
26
27
# File 'lib/mij-discord/data/invite.rb', line 25

def splash_hash
  @splash_hash
end