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(params) ⇒ ErrorMessage

Returns a new instance of ErrorMessage.



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

def initialize(params)
  params.each do |key, value|
    self.instance_variable_set("@#{key}".to_sym, value)
  end
end

Instance Attribute Details

#categoryObject (readonly)

Returns the value of attribute category.



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

def category
  @category
end

#columnObject (readonly)

Returns the value of attribute column.



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

def column
  @column
end

#constraintsObject (readonly)

Returns the value of attribute constraints.



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

def constraints
  @constraints
end

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
end

#rowObject (readonly)

Returns the value of attribute row.



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

def row
  @row
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end