Exception: MinecraftAvatars::InvalidPlayerException

Inherits:
BaseException
  • Object
show all
Defined in:
lib/minecraft-avatars/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#playerObject

Returns the value of attribute player.



7
8
9
# File 'lib/minecraft-avatars/exceptions.rb', line 7

def player
  @player
end