Class: DataAnon::Core::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/core/field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_recordObject

Returns the value of attribute ar_record.



14
15
16
# File 'lib/core/field.rb', line 14

def ar_record
  @ar_record
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/core/field.rb', line 14

def name
  @name
end

#row_numberObject

Returns the value of attribute row_number.



14
15
16
# File 'lib/core/field.rb', line 14

def row_number
  @row_number
end

#table_nameObject 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

#valueObject

Returns the value of attribute value.



14
15
16
# File 'lib/core/field.rb', line 14

def value
  @value
end