Sha256: 144da3b84ee2f305c123ac771ea6538304823068171818eba9cd0ac05fea0d0f
Contents?: true
Size: 845 Bytes
Versions: 3
Compression:
Stored size: 845 Bytes
Contents
module Contactually module Models class Contact include Model field :addresses, [Address] field :avatar_url, :string field :company, :string field :created_at, :datetime field :email_addresses, [EmailAddress] field :first_name, :string field :id, :string field :last_name, :string field :phone_numbers, [PhoneNumber] field :social_media_profiles, [SocialMediaProfile] field :tags, [String] field :title, :string field :websites, [Website] field :updated_at, :datetime # field :custom_fields, [String] TODO: should be it's own model type field :extra_data, Hash def first_email_address if email_addresses email_addresses.first else EmailAddress.new({}) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
contactually-rb-0.1.3 | lib/contactually/models/contact.rb |
contactually-rb-0.1.2 | lib/contactually/models/contact.rb |
contactually-rb-0.1.1 | lib/contactually/models/contact.rb |