Class: ListExportUser

Inherits:
User show all
Defined in:
app/models/list_export.rb

Instance Attribute Summary

Attributes inherited from User

#add_to_corporation, #add_to_group, #create_account

Instance Method Summary collapse

Methods inherited from User

#accept_terms, #accepted_terms?, #activate_account, #address_label, #admin_of, #admin_of?, #admin_of_anything?, #administrated_objects, #alias, alive, #alive?, applicable_for_new_account, #bookmarked_objects, #capitalize_name, #corporate_vita_memberships_in, #corporations, #current_corporations, #current_status_group_in, #current_status_membership_in, #date_of_death, #deactivate_account, #dead?, deceased, deceased_ids, #developer, #developer=, #developer?, #directly_administrated_objects, #end_all_non_corporation_memberships, find_all_by_email, find_all_by_name, find_all_hidden, find_all_non_hidden, find_by_email, find_by_name, find_by_title, #find_or_build_last_seen_activity, #first_corporation, #former_member_of_corporation?, #gender, #gender=, #generate_alias, #generate_alias!, #global_admin, #global_admin=, #global_admin?, #group_flags, #guest_of?, #has_account?, #has_no_account?, hidden, #hidden, #hidden=, #hidden?, #inspect, #join, joins_groups, #last_group_in_first_corporation, #leave, #main_admin_of?, #male?, #mark_as_deceased, #markable_as_deceased?, #member_of?, #my_groups_in_first_corporation, #name, #name_affix, #news_pages, #relationships, #role_for, #set_date_of_death_if_unset, #sorted_current_corporations, #status_group_in_primary_corporation, #status_group_memberships, #status_groups, #title, #to_param, #upcoming_events, #update_last_seen_activity, with_email, with_group_flag, with_group_flags, without_account, #workflows, #workflows_by_corporation, #workflows_for

Methods included from UserDateOfBirth

#age, #birthday_this_year, #build_date_of_birth_profile_field, #date_of_birth, #date_of_birth=, #date_of_birth_profile_field, #find_or_build_date_of_birth_profile_field, #find_or_create_date_of_birth_profile_field, #localized_date_of_birth=

Methods included from UserProfile

#academic_degree, #fill_in_template_profile_information, #landline_profile_fields, #mobile, #mobile=, #mobile_phone_profile_fields, #name_surrounding_profile_field, #personal_title, #phone, #phone=, #phone_profile_fields, #profile_field_value, #text_above_name, #text_after_name, #text_before_name, #text_below_name

Methods included from UserCorporations

#corporation, #corporation_id, #corporation_name, #corporation_name=

Methods inherited from ActiveRecord::Base

#readonly?

Instance Method Details

#address_label_text_above_nameObject



339
340
341
# File 'app/models/list_export.rb', line 339

def address_label_text_above_name
  address_label.text_above_name
end

#address_label_text_after_nameObject



348
349
350
# File 'app/models/list_export.rb', line 348

def address_label_text_after_name
  address_label.name_suffix
end

#address_label_text_before_nameObject



345
346
347
# File 'app/models/list_export.rb', line 345

def address_label_text_before_name
  address_label.name_prefix
end

#address_label_text_below_nameObject



342
343
344
# File 'app/models/list_export.rb', line 342

def address_label_text_below_name
  address_label.text_below_name
end

#cache_keyObject



352
353
354
355
# File 'app/models/list_export.rb', line 352

def cache_key
  # Otherwise the cached information of the user won't be used.
  super.gsub('list_export_users/', 'users/')
end

#cached_localized_postal_address_updated_atObject



324
325
326
# File 'app/models/list_export.rb', line 324

def cached_localized_postal_address_updated_at
  I18n.localize cached_postal_address_updated_at if cached_postal_address_updated_at
end

#cached_postal_address_updated_atObject



321
322
323
# File 'app/models/list_export.rb', line 321

def cached_postal_address_updated_at
  postal_address_updated_at
end

#current_ageObject

Birthday, Date of Birth, Date of Death



306
307
308
# File 'app/models/list_export.rb', line 306

def current_age
  age
end

#localized_birthday_this_yearObject



309
310
311
# File 'app/models/list_export.rb', line 309

def localized_birthday_this_year
  I18n.localize birthday_this_year if birthday_this_year
end

#localized_date_of_birthObject



312
313
314
# File 'app/models/list_export.rb', line 312

def localized_date_of_birth
  I18n.localize date_of_birth if date_of_birth
end

#postal_address_countryObject



333
334
335
# File 'app/models/list_export.rb', line 333

def postal_address_country
  address_label.country
end

#postal_address_country_codeObject



336
337
338
# File 'app/models/list_export.rb', line 336

def postal_address_country_code
  address_label.country_code
end

#postal_address_postal_codeObject



327
328
329
# File 'app/models/list_export.rb', line 327

def postal_address_postal_code
  address_label.postal_code
end

#postal_address_townObject



330
331
332
# File 'app/models/list_export.rb', line 330

def postal_address_town
  address_label.city
end

#postal_address_with_name_surroundingObject

Address



318
319
320
# File 'app/models/list_export.rb', line 318

def postal_address_with_name_surrounding
  address_label.postal_address_with_name_surrounding
end