Class: Monet::ErrorImage
- Inherits:
-
Object
- Object
- Monet::ErrorImage
- Defined in:
- lib/monet/error_image.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #image ⇒ Object
-
#initialize(path, code) ⇒ ErrorImage
constructor
A new instance of ErrorImage.
Constructor Details
#initialize(path, code) ⇒ ErrorImage
Returns a new instance of ErrorImage.
5 6 7 8 |
# File 'lib/monet/error_image.rb', line 5 def initialize(path, code) @path = path @error = code end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
3 4 5 |
# File 'lib/monet/error_image.rb', line 3 def error @error end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/monet/error_image.rb', line 3 def path @path end |