Class: Monet::ErrorImage

Inherits:
Object
  • Object
show all
Defined in:
lib/monet/error_image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



3
4
5
# File 'lib/monet/error_image.rb', line 3

def error
  @error
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/monet/error_image.rb', line 3

def path
  @path
end

Instance Method Details

#imageObject



10
11
12
# File 'lib/monet/error_image.rb', line 10

def image
  Monet::Image.new @path
end