Class: TextGen::Address
- Inherits:
-
Object
- Object
- TextGen::Address
- Defined in:
- lib/textgen/address.rb
Constant Summary collapse
- @@st_parts =
['ave','circle','blvd','rd','st','ln','way','pl','ct','pkwy','alley']
Class Method Summary collapse
- .city ⇒ Object
-
.generate ⇒ Object
todo: just enable from geocoding?.
- .postal ⇒ Object
- .state ⇒ Object
-
.street ⇒ Object
todo, just use trees/nature and people?.
Class Method Details
.city ⇒ Object
12 13 14 |
# File 'lib/textgen/address.rb', line 12 def self.city "Fake City" end |
.generate ⇒ Object
todo: just enable from geocoding?
5 6 7 |
# File 'lib/textgen/address.rb', line 5 def self.generate #todo: just enable from geocoding? "#{street}, #{city} #{state} #{postal}" end |
.postal ⇒ Object
18 19 20 21 22 |
# File 'lib/textgen/address.rb', line 18 def self.postal return 5.times.collect do rand(0..9).to_s end.join end |
.state ⇒ Object
15 16 17 |
# File 'lib/textgen/address.rb', line 15 def self.state "ST" end |