Class: Faker::Games::Overwatch
- Defined in:
- lib/faker/games/overwatch.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.hero ⇒ String
Produces the name of a hero from Overwatch.
-
.location ⇒ String
Produces the name of a location from Overwatch.
-
.quote ⇒ String
Produces a quote from Overwatch.
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
.hero ⇒ String
Produces the name of a hero from Overwatch.
16 17 18 |
# File 'lib/faker/games/overwatch.rb', line 16 def hero fetch('games.overwatch.heroes') end |
.location ⇒ String
Produces the name of a location from Overwatch.
29 30 31 |
# File 'lib/faker/games/overwatch.rb', line 29 def location fetch('games.overwatch.locations') end |
.quote ⇒ String
Produces a quote from Overwatch.
42 43 44 |
# File 'lib/faker/games/overwatch.rb', line 42 def quote fetch('games.overwatch.quotes') end |