Method: ActiveMerchant::Billing::CreditCard#name=

Defined in:
lib/active_merchant/billing/credit_card.rb

#name=(full_name) ⇒ Object



83
84
85
86
87
# File 'lib/active_merchant/billing/credit_card.rb', line 83

def name=(full_name)
  names = full_name.split
  self.last_name  = names.pop
  self.first_name = names.join(" ")
end