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"
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.
Most helpful comment
@jishnu2003 I know I can always create a method and use it, I was proposing to have it in
Fakeritself.