Class: LOLFaker::Location
- Inherits:
-
Object
- Object
- LOLFaker::Location
- Defined in:
- lib/lolfaker/location.rb
Class Method Summary collapse
Class Method Details
.city ⇒ Object
12 13 14 |
# File 'lib/lolfaker/location.rb', line 12 def self.city city = ['Bandle City', 'Bilgewater', 'Demacia', 'Freljord', 'Ionia', 'Mount Targon', 'Noxus', 'Piltover', 'Shadow Isles', 'Shurima', 'Zaun'].sample end |
.field ⇒ Object
8 9 10 |
# File 'lib/lolfaker/location.rb', line 8 def self.field field = ['Crystal Scar', 'Howling Abyss', 'Summoner\'s Rift', 'Twisted Treeline'].sample end |
.name ⇒ Object
4 5 6 |
# File 'lib/lolfaker/location.rb', line 4 def self.name [field, city].sample end |