Class: Csvlint::ErrorMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, category, row, column, content, constraints) ⇒ ErrorMessage

Returns a new instance of ErrorMessage.



5
6
7
8
9
10
11
12
# File 'lib/csvlint/error_message.rb', line 5

def initialize(type, category, row, column, content, constraints)
  @type = type
  @category = category
  @row = row
  @column = column
  @content = content
  @constraints = constraints
end

Instance Attribute Details

#categoryObject (readonly)

Returns the value of attribute category.



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

def category
  @category
end

#columnObject (readonly)

Returns the value of attribute column.



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

def column
  @column
end

#constraintsObject (readonly)

Returns the value of attribute constraints.



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

def constraints
  @constraints
end

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
end

#rowObject (readonly)

Returns the value of attribute row.



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

def row
  @row
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end