Class: Swift::Errors

Inherits:
Array
  • Object
show all
Defined in:
lib/swift/validations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(relation) ⇒ Errors

Returns a new instance of Errors.



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

def initialize relation
  @relation = relation
end

Instance Attribute Details

#relationObject

Returns the value of attribute relation.



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

def relation
  @relation
end