Method: KktShoppe::Customer#name
- Defined in:
- app/models/kkt_shoppe/customer.rb
#name ⇒ String
The name of the customer in the format of “Company (First Last)” or if they don’t have company specified, just “First Last”.
21 22 23 |
# File 'app/models/kkt_shoppe/customer.rb', line 21 def name company.blank? ? full_name : "#{company} (#{full_name})" end |