Exception: MinecraftAvatars::InvalidResolutionException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resolution) ⇒ InvalidResolutionException

Returns a new instance of InvalidResolutionException.



18
19
20
21
# File 'lib/minecraft-avatars/exceptions.rb', line 18

def initialize(resolution)
  self.resolution = resolution
  super "Resolution #{resolution} is not valid!"
end

Instance Attribute Details

#resolutionObject

Returns the value of attribute resolution.



16
17
18
# File 'lib/minecraft-avatars/exceptions.rb', line 16

def resolution
  @resolution
end