Exception: CampoInvalido

Inherits:
StandardError
  • Object
show all
Defined in:
lib/exceptions/campoInvalido.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(campo, motivo) ⇒ CampoInvalido

Returns a new instance of CampoInvalido.



5
6
7
8
# File 'lib/exceptions/campoInvalido.rb', line 5

def initialize(campo, motivo)
	@campo = campo
	@motivo = motivo
end

Instance Attribute Details

#campoObject

Returns the value of attribute campo.



3
4
5
# File 'lib/exceptions/campoInvalido.rb', line 3

def campo
  @campo
end

#motivoObject

Returns the value of attribute motivo.



3
4
5
# File 'lib/exceptions/campoInvalido.rb', line 3

def motivo
  @motivo
end