Class: Bigid::Bgcheck::DocType

Inherits:
Object
  • Object
show all
Defined in:
lib/bigid/bgcheck/doc_type.rb

Constant Summary collapse

VALUES =
%w[CPF CNPJ].freeze

Class Method Summary collapse

Class Method Details

.valid?(document_type) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/bigid/bgcheck/doc_type.rb', line 8

def self.valid?(document_type)
  VALUES.include?(document_type.upcase)
end

.valuesObject



12
13
14
# File 'lib/bigid/bgcheck/doc_type.rb', line 12

def self.values
  VALUES
end