Class: Exwiw::RowTransformer::Person

Inherits:
Struct
  • Object
show all
Defined in:
lib/exwiw/row_transformer.rb

Overview

A coherent fake identity. All person-family types (PERSON_TYPES) draw from one shared pool of these per locale, and a seed picks the same pool index for every such column — so last_name / first_name / full name (and their kana) for one seed all belong to the same person. kana fields are only populated for the ja locale (faker has no readings; exwiw bundles a paired dataset — see JapaneseNames); they are nil otherwise.

Instance Attribute Summary collapse

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name

Returns:

  • (Object)

    the current value of first_name



49
50
51
# File 'lib/exwiw/row_transformer.rb', line 49

def first_name
  @first_name
end

#first_name_kanaObject

Returns the value of attribute first_name_kana

Returns:

  • (Object)

    the current value of first_name_kana



49
50
51
# File 'lib/exwiw/row_transformer.rb', line 49

def first_name_kana
  @first_name_kana
end

#last_nameObject

Returns the value of attribute last_name

Returns:

  • (Object)

    the current value of last_name



49
50
51
# File 'lib/exwiw/row_transformer.rb', line 49

def last_name
  @last_name
end

#last_name_kanaObject

Returns the value of attribute last_name_kana

Returns:

  • (Object)

    the current value of last_name_kana



49
50
51
# File 'lib/exwiw/row_transformer.rb', line 49

def last_name_kana
  @last_name_kana
end