Comply with Style/PredicateName rule for ? method names
This commit is contained in:
@@ -119,7 +119,7 @@ class CensusApi
|
||||
{get_habita_datos_response: {get_habita_datos_return: {datos_habitante: {}, datos_vivienda: {}}}}
|
||||
end
|
||||
|
||||
def is_dni?(document_type)
|
||||
def dni?(document_type)
|
||||
document_type.to_s == "1"
|
||||
end
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ module DocumentParser
|
||||
document_number = document_number.to_s.gsub(/[^0-9A-Za-z]/i, '')
|
||||
variants = []
|
||||
|
||||
if is_dni?(document_type)
|
||||
if dni?(document_type)
|
||||
document_number, letter = split_letter_from(document_number)
|
||||
number_variants = get_number_variants_with_leading_zeroes_from(document_number)
|
||||
letter_variants = get_letter_variants(number_variants, letter)
|
||||
|
||||
@@ -63,7 +63,7 @@ class LocalCensus
|
||||
LocalCensusRecord.find_by(document_type: document_type, document_number: document_number)
|
||||
end
|
||||
|
||||
def is_dni?(document_type)
|
||||
def dni?(document_type)
|
||||
document_type.to_s == "1"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user