Class: CreditCard

Inherits:
MLS::Model show all
Defined in:
lib/mls/models/credit_card.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



5
6
7
8
9
# File 'lib/mls/models/credit_card.rb', line 5

def name
  string = "•••• ••••• •" if self.brand == "American Express"
  string ||= "•••• •••• •••• "
  string += self.last4
end