Sha256: 59bbed79be78df9a7413ddfd30c475bb4aa41bdc4d231316351ebddc87f497c8
Contents?: true
Size: 577 Bytes
Versions: 13
Compression:
Stored size: 577 Bytes
Contents
module Clinical module Contact def self.included(base) base.class_eval do include HappyMapper include Clinical::Contact::InstanceMethods element :first_name, String element :middle_name, String element :last_name, String element :degrees, String element :phone, String element :phone_extension, String, :tag => "phone_ext" element :email, String end end module InstanceMethods def to_s [first_name, last_name, "(#{phone})"].join(" ") end end end end
Version data entries
13 entries across 13 versions & 2 rubygems