Class: MijDiscord::Bot::AuthInfo
- Inherits:
-
Object
- Object
- MijDiscord::Bot::AuthInfo
- Defined in:
- lib/mij-discord/bot.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute token.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(token, type) ⇒ AuthInfo
constructor
A new instance of AuthInfo.
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
#token ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/mij-discord/bot.rb', line 8 def type @type end |