Class: MijDiscord::Data::InviteServer
- Inherits:
-
Object
- Object
- MijDiscord::Data::InviteServer
- Includes:
- IDObject
- Defined in:
- lib/mij-discord/data/invite.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#splash_hash ⇒ Object
readonly
Returns the value of attribute splash_hash.
Attributes included from IDObject
Instance Method Summary collapse
-
#initialize(data, bot) ⇒ InviteServer
constructor
A new instance of InviteServer.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/mij-discord/data/invite.rb', line 23 def name @name end |
#splash_hash ⇒ Object (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 |