Method: Faker::Address.country

Defined in:
lib/faker/default/address.rb

.countryString

Produces the name of a country.

Examples:

Faker::Address.country #=> "French Guiana"

Returns:

  • (String)

Available since:

  • 0.3.0



217
218
219
# File 'lib/faker/default/address.rb', line 217

def country
  fetch('address.country')
end