Class: DataAnon::Core::Field
- Inherits:
-
Object
- Object
- DataAnon::Core::Field
- Defined in:
- lib/core/field.rb
Instance Attribute Summary collapse
-
#ar_record ⇒ Object
Returns the value of attribute ar_record.
-
#name ⇒ Object
Returns the value of attribute name.
-
#row_number ⇒ Object
Returns the value of attribute row_number.
-
#table_name ⇒ Object
(also: #collection_name)
Returns the value of attribute table_name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, row_number, ar_record, table_name = 'unknown') ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name, value, row_number, ar_record, table_name = 'unknown') ⇒ Field
Returns a new instance of Field.
6 7 8 9 10 11 12 |
# File 'lib/core/field.rb', line 6 def initialize name, value, row_number, ar_record, table_name = 'unknown' @name = name @value = value @row_number = row_number @ar_record = ar_record @table_name = table_name end |
Instance Attribute Details
#ar_record ⇒ Object
Returns the value of attribute ar_record.
14 15 16 |
# File 'lib/core/field.rb', line 14 def ar_record @ar_record end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/core/field.rb', line 14 def name @name end |
#row_number ⇒ Object
Returns the value of attribute row_number.
14 15 16 |
# File 'lib/core/field.rb', line 14 def row_number @row_number end |
#table_name ⇒ Object Also known as: collection_name
Returns the value of attribute table_name.
14 15 16 |
# File 'lib/core/field.rb', line 14 def table_name @table_name end |
#value ⇒ Object
Returns the value of attribute value.
14 15 16 |
# File 'lib/core/field.rb', line 14 def value @value end |