Exception: MinecraftAvatars::InvalidPlayerException
- Inherits:
-
BaseException
- Object
- Exception
- BaseException
- MinecraftAvatars::InvalidPlayerException
- Defined in:
- lib/minecraft-avatars/exceptions.rb
Instance Attribute Summary collapse
-
#player ⇒ Object
Returns the value of attribute player.
Instance Method Summary collapse
-
#initialize(player) ⇒ InvalidPlayerException
constructor
A new instance of InvalidPlayerException.
Constructor Details
#initialize(player) ⇒ InvalidPlayerException
Returns a new instance of InvalidPlayerException.
9 10 11 12 |
# File 'lib/minecraft-avatars/exceptions.rb', line 9 def initialize(player) self.player = player super "Player #{player} does not exist" end |
Instance Attribute Details
#player ⇒ Object
Returns the value of attribute player.
7 8 9 |
# File 'lib/minecraft-avatars/exceptions.rb', line 7 def player @player end |