Class: MijDiscord::Bot::AuthInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/mij-discord/bot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, type) ⇒ AuthInfo

Returns a new instance of AuthInfo.



10
11
12
# File 'lib/mij-discord/bot.rb', line 10

def initialize(token, type)
  @token, @type = token, type
end

Instance Attribute Details

#tokenObject (readonly) Also known as: to_s

Returns the value of attribute token.



6
7
8
# File 'lib/mij-discord/bot.rb', line 6

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/mij-discord/bot.rb', line 8

def type
  @type
end