Sha256: db7e552d1dbfe68dce6e3da90f5336d7946344e62d6aec93f516e928d321bbad

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

class CreditCard < MLS::Model

  belongs_to :account
  
  def name
    string = "&bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull;&bull; &bull;" if self.brand == "American Express"
    string ||= "&bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; "
    string += self.last4
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mls-1.9.0 lib/mls/models/credit_card.rb
mls-1.8.0 lib/mls/models/credit_card.rb
mls-1.7.0 lib/mls/models/credit_card.rb
mls-1.6.0 lib/mls/models/credit_card.rb
mls-1.5.1 lib/mls/credit_card.rb