Sha256: ee5845c7d8103785743bc6363092a536d383abb8bd5e53d49293c42fa6f9be86
Contents?: true
Size: 301 Bytes
Versions: 7
Compression:
Stored size: 301 Bytes
Contents
class Company < Person def to_s if company_name.present? company_name.to_s elsif email.present? email.to_s elsif id.present? "No Name ##{id}" else "No Name" end end def naming_details_available? email.present? || company_name.present? end end
Version data entries
7 entries across 7 versions & 1 rubygems