Method: CCheck.type

Defined in:
lib/ccheck.rb

.type(number) ⇒ Object

Public: Determines CC type.

number - String

Return String of CC type (Visa, MC). if not found “Unknown”



24
25
26
# File 'lib/ccheck.rb', line 24

def type number
  Card.new(number).type
end