Method: KktShoppe::Customer#name

Defined in:
app/models/kkt_shoppe/customer.rb

#nameString

The name of the customer in the format of “Company (First Last)” or if they don’t have company specified, just “First Last”.

Returns:

  • (String)


21
22
23
# File 'app/models/kkt_shoppe/customer.rb', line 21

def name
  company.blank? ? full_name : "#{company} (#{full_name})"
end