Class: Opencdd::Validator::ValidationError

Inherits:
Struct
  • Object
show all
Defined in:
lib/opencdd/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



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

def column
  @column
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



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

def message
  @message
end

#rowObject

Returns the value of attribute row

Returns:

  • (Object)

    the current value of row



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

def row
  @row
end

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



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

def rule
  @rule
end

#sheetObject

Returns the value of attribute sheet

Returns:

  • (Object)

    the current value of sheet



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

def sheet
  @sheet
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/opencdd/validator.rb', line 6

def to_s
  "#{sheet} row=#{row} col=#{column} [#{rule}]: #{message}"
end