Class: Csvlint::ErrorMessage
- Inherits:
-
Object
- Object
- Csvlint::ErrorMessage
- Defined in:
- lib/csvlint/error_message.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#constraints ⇒ Object
readonly
Returns the value of attribute constraints.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ ErrorMessage
constructor
A new instance of ErrorMessage.
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
#category ⇒ Object (readonly)
Returns the value of attribute category.
5 6 7 |
# File 'lib/csvlint/error_message.rb', line 5 def category @category end |
#column ⇒ Object (readonly)
Returns the value of attribute column.
5 6 7 |
# File 'lib/csvlint/error_message.rb', line 5 def column @column end |
#constraints ⇒ Object (readonly)
Returns the value of attribute constraints.
5 6 7 |
# File 'lib/csvlint/error_message.rb', line 5 def constraints @constraints end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
5 6 7 |
# File 'lib/csvlint/error_message.rb', line 5 def content @content end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
5 6 7 |
# File 'lib/csvlint/error_message.rb', line 5 def row @row end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/csvlint/error_message.rb', line 5 def type @type end |