Class: ValidationAssertion

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, validation_type, attribute) ⇒ ValidationAssertion

Returns a new instance of ValidationAssertion.



4
5
6
# File 'lib/validation_assertion.rb', line 4

def initialize(klass, validation_type, attribute)
  self.klass, self.validation_type, self.attribute, self.options = klass, validation_type, attribute, {}
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



2
3
4
# File 'lib/validation_assertion.rb', line 2

def attribute
  @attribute
end

#klassObject

Returns the value of attribute klass.



2
3
4
# File 'lib/validation_assertion.rb', line 2

def klass
  @klass
end

#optionsObject

Returns the value of attribute options.



2
3
4
# File 'lib/validation_assertion.rb', line 2

def options
  @options
end

#validation_typeObject

Returns the value of attribute validation_type.



2
3
4
# File 'lib/validation_assertion.rb', line 2

def validation_type
  @validation_type
end