Sha256: be520a08cbe4b424045b15214642e123f8dd5dde0486ed963e81f7a0f170458d
Contents?: true
Size: 300 Bytes
Versions: 21
Compression:
Stored size: 300 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
21 entries across 21 versions & 1 rubygems