forked from faker-ruby/faker
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add YARD docs to Faker::Chile_Rut (faker-ruby#2054)
* Add YARD docs to Faker::Chile_Rut * Remove non-ascii characters from YARD
- Loading branch information
1 parent
d72ef16
commit f60244b
Showing
9 changed files
with
372 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
# Faker::Business | ||
|
||
```ruby | ||
Faker::Business.credit_card_number #=> "1228-1221-1221-1431" | ||
|
||
Faker::Business.credit_card_expiry_date #=> <Date: 2015-11-11 ((2457338j,0s,0n),+0s,2299161j)> | ||
|
||
Faker::Business.credit_card_type #=> "visa" | ||
Faker::Business.card_brand #=> "visa" | ||
|
||
Faker::Business.card_type #=> "visa_debit" | ||
|
||
# Keyword arguments: card_type | ||
Faker::Business.valid_card_number #=> "4242424242424242" | ||
Faker::Business.valid_card_number(card_type: "visa_debit") #=> "4000056655665556" | ||
|
||
# Keyword arguments: card_error | ||
Faker::Business.invalid_card_number #=> "4000000000000002" | ||
Faker::Business.invalid_card_number(card_error: "addressZipFail") #=> "4000000000000010" | ||
|
||
Faker::Business.card_expiry_month #=> "10" | ||
|
||
Faker::Business.card_expiry_year #=> "2023" # This will always be a year in the future | ||
|
||
# Keyword arguments: card_type | ||
Faker::Business.ccv #=> "123" | ||
Faker::Business.ccv(card_type: "amex") #=> "1234" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.