Base
# File lib/faker/address.rb, line 22 def building_number bothify(fetch('address.building_number')) end
# File lib/faker/address.rb, line 6 def city parse('address.city') end
# File lib/faker/address.rb, line 34 def city_prefix; fetch('address.city_prefix'); end
# File lib/faker/address.rb, line 33 def city_suffix; fetch('address.city_suffix'); end
# File lib/faker/address.rb, line 37 def country; fetch('address.country'); end
# File lib/faker/address.rb, line 39 def latitude ((rand * 180) - 90).to_s end
# File lib/faker/address.rb, line 43 def longitude ((rand * 360) - 180).to_s end
# File lib/faker/address.rb, line 18 def secondary_address numerify(fetch('address.secondary_address')) end
# File lib/faker/address.rb, line 36 def state; fetch('address.state'); end
# File lib/faker/address.rb, line 35 def state_abbr; fetch('address.state_abbr'); end
# File lib/faker/address.rb, line 14 def street_address(include_secondary = false) numerify(parse('address.street_address') + (include_secondary ? ' ' + secondary_address : '')) end
# File lib/faker/address.rb, line 10 def street_name parse('address.street_name') end
Generated with the Darkfish Rdoc Generator 2.