Faker: [Feature Request] Add full address

Created on 15 Sep 2016  路  5Comments  路  Source: faker-ruby/faker

Faker::Address.address or Faker::Address.full_address should return full address which combines street_name, building_number, city, country etc something like this:

2.3.1 :014 > "#{Faker::Address.building_number}, #{Faker::Address.street_address}, #{Faker::Address.street_name}, #{Faker::Address.city}, #{Faker::Address.country} - #{Faker::Address.zip_code}"
 => "55747, 754 Walsh Neck, Watsica Lake, West Rory, Lithuania - 85138-8394"
Feature Request

Most helpful comment

@jishnu2003 I know I can always create a method and use it, I was proposing to have it in Faker itself.

All 5 comments

Hi Tejas,

I guess you can create a method and use the above logic.
Something like below:

def address
"#{Faker::Address.building_number}, #{Faker::Address.street_address}, #{Faker::Address.street_name}, #{Faker::Address.city}, #{Faker::Address.country} - #{Faker::Address.zip_code}"
end

Hope this helps!

Thanks,
Jishnu

@jishnu2003 I know I can always create a method and use it, I was proposing to have it in Faker itself.

I think it would be useful for me as well.
Let us know if we could move on. I could help in this PR.

It looks like this got handled under #744

Closing this issue because it was already resolved by #744.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vbrazo picture vbrazo  路  3Comments

oyeanuj picture oyeanuj  路  5Comments

KelseyDH picture KelseyDH  路  4Comments

benpolinsky picture benpolinsky  路  5Comments

neutralino1 picture neutralino1  路  3Comments