Class: Validatable::ValidationBase

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute, message) ⇒ ValidationBase

Returns a new instance of ValidationBase.



5
6
7
# File 'lib/validation_base.rb', line 5

def initialize(attribute, message)
  @attribute, @message = attribute, message
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



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

def attribute
  @attribute
end

#messageObject

Returns the value of attribute message.



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

def message
  @message
end