Exception: MinecraftAvatars::InvalidResolutionException
- Inherits:
-
BaseException
- Object
- Exception
- BaseException
- MinecraftAvatars::InvalidResolutionException
- Defined in:
- lib/minecraft-avatars/exceptions.rb
Instance Attribute Summary collapse
-
#resolution ⇒ Object
Returns the value of attribute resolution.
Instance Method Summary collapse
-
#initialize(resolution) ⇒ InvalidResolutionException
constructor
A new instance of InvalidResolutionException.
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
#resolution ⇒ Object
Returns the value of attribute resolution.
16 17 18 |
# File 'lib/minecraft-avatars/exceptions.rb', line 16 def resolution @resolution end |