Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Faker::Company.brazilian_company_number #1430

Merged
merged 5 commits into from
Nov 10, 2018

Conversation

gabteles
Copy link
Contributor

Adds brazilian company number (CNPJ)

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing 👍

The logic looks ok to me, but I believe this method should be located in Faker::Company. Take a look at the Faker::Company methods. Faker::IDNumber should concentrate citizens and foreigners identification/ID from different nationalities.

I'd suggest moving this logic to the company object.

@vbrazo vbrazo changed the title Adding Faker::IDNumber.brazilian_company_number Adding Faker::Company.brazilian_company_number Oct 24, 2018
@gabteles
Copy link
Contributor Author

Done, @vbrazo

@vbrazo vbrazo merged commit 1d28194 into faker-ruby:master Nov 10, 2018
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* Adding Faker::IDNumber.brazilian_company_number

* fix compatibility for older ruby versions

* moving from id number to company

* updating docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants