Class: Contactually::Models::Contact

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/contactually/models/contact.rb

Instance Method Summary collapse

Methods included from Model

#attributes, included, #initialize, #inspect

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Contactually::Models::Model

Instance Method Details

#first_email_addressObject



24
25
26
27
28
29
30
# File 'lib/contactually/models/contact.rb', line 24

def first_email_address
  if email_addresses
    email_addresses.first
  else
    EmailAddress.new({})
  end
end