lib/targetdata/entities/person.rb in targetdata-0.3.0 vs lib/targetdata/entities/person.rb in targetdata-0.3.1
- old
+ new
@@ -43,9 +43,13 @@
@mother_middle_name = params['maeNomeMeio']
@mother_last_name = params['maeNomeUltimo']
@schooling = params['escolaridade']
end
+ def full_name
+ "#{@first_name} #{@middle_name} #{@last_name}".strip
+ end
+
def to_json
{
cpf: @cpf,
first_name: @first_name,
middle_name: @middle_name,
\ No newline at end of file