Class: Faker::Games::Dota
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.building ⇒ String
Produces the name of a building from Dota.
-
.hero ⇒ String
Produces the name of a hero from Dota.
-
.item ⇒ String
Produces the name of an item from Dota.
-
.player ⇒ String
Produces the name of a professional Dota player.
-
.quote(hero: 'abaddon') ⇒ String
Produces the name of a hero from Dota.
-
.team ⇒ String
Produces the name of a professional Dota team.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.building ⇒ String
Produces the name of a building from Dota.
16 17 18 |
# File 'lib/faker/games/dota.rb', line 16 def building fetch('games.dota.building') end |
.hero ⇒ String
Produces the name of a hero from Dota.
29 30 31 |
# File 'lib/faker/games/dota.rb', line 29 def hero fetch('games.dota.hero') end |
.item ⇒ String
Produces the name of an item from Dota.
42 43 44 |
# File 'lib/faker/games/dota.rb', line 42 def item fetch('games.dota.item') end |
.player ⇒ String
Produces the name of a professional Dota player.
68 69 70 |
# File 'lib/faker/games/dota.rb', line 68 def player fetch('games.dota.player') end |
.quote(hero: 'abaddon') ⇒ String
Produces the name of a hero from Dota.
83 84 85 |
# File 'lib/faker/games/dota.rb', line 83 def quote(hero: 'abaddon') fetch("games.dota.#{hero}.quote") end |
.team ⇒ String
Produces the name of a professional Dota team.
55 56 57 |
# File 'lib/faker/games/dota.rb', line 55 def team fetch('games.dota.team') end |