Class: RandomPerson::Names::ThaiFirst

Inherits:
RandomPerson::Name show all
Defined in:
lib/randomperson/Names/ThaiFirst.rb

Instance Attribute Summary

Attributes inherited from RandomPerson::Name

#formats, #formats_ratiod, #names

Instance Method Summary collapse

Methods inherited from RandomPerson::Name

#execute

Constructor Details

#initializeThaiFirst

Returns a new instance of ThaiFirst.



8
9
10
11
12
13
14
15
# File 'lib/randomperson/Names/ThaiFirst.rb', line 8

def initialize
  @formats = {
    :single =>                      ->(n)   { n.rand },
   }
   
  @formats_ratiod = [ (0..99)]
  setupnames
end

Instance Method Details

#setupnamesObject



18
19
20
# File 'lib/randomperson/Names/ThaiFirst.rb', line 18

def setupnames
  @names = %w{ กมล กาญจนา เกษม จารุวรรณ ดวงใจ ถนอม ทัศนีย์ ธงชัย ธิดา ณรงค์ นงลักษณ์ นพดล นฤมล นิตยา บัญชา ประจักษ์ ประชา ประทุม ปัญญา ปราณี ปรีชา พรชัย พรรณี ไพบูลย์ ไพโรจน์ มนตรี มานะ มานิตย์ มาลี ยุพิน รัชนี รัตนา วัฒนา วราภรณ์ วาสนา วิเชียร วินัย วิโรจน์ ศศิธร ศิริพร สมชาย สมทรง สมพร สมหมาย สมศรี สำราญ สุกัญญา สุชาดา สุชาติ สุเทพ สุนีย์ สุภาภรณ์ อนงค์ อนันต์	  }
end