Method: Veye::User::ProfileCSV#format

Defined in:
lib/veye/views/user/profile_csv.rb

#format(results) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/veye/views/user/profile_csv.rb', line 10

def format(results)
  return nil if results.nil?
  printf("%s,%s,%s,%s,%s,%s,%s\n",
        results['username'],
        results['fullname'],
        results['email'],
        results['plan_name_id'],
        results['admin'],
        results['notifications']['new'],
        results['notifications']['total'])
end