Class: Profile

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/profile.rb

Instance Method Summary collapse

Instance Method Details

#emailObject



31
32
33
# File 'app/models/profile.rb', line 31

def email
  self.emails.first
end

#nameObject



27
28
29
# File 'app/models/profile.rb', line 27

def name
  self.first_name + ' ' + self.last_name
end

#phoneObject



35
36
37
# File 'app/models/profile.rb', line 35

def phone
  self.phones.first
end

#urlObject



39
40
41
# File 'app/models/profile.rb', line 39

def url
  self.urls.first
end