lib/faker/russian/inn.rb in faker-russian-0.0.2 vs lib/faker/russian/inn.rb in faker-russian-0.0.3

- old
+ new

@@ -15,25 +15,9 @@ inn_without_check_digit + check_digit(inn_without_check_digit) end private - def find_sequence(number) - sequence = number || Random.rand(1_000_000_000) - Random.new(sequence) - end - - def find_region_number(number = nil, sequence) - region_numbers = Faker::Russian::SharedConstants::REGION_NUMBERS - - if number.present? - raise('there is no region with that number!') unless region_numbers.include?(number.to_s) - number.to_s - else - region_numbers[sequence.rand(region_numbers.size)] - end - end - def find_kind(kind, sequence) case kind when :individual, :legal then kind when nil then [:individual, :legal][sequence.rand(2)] else raise 'there is no any kind other than :individual or :legal'