Class: Faker::Games::HeroesOfTheStorm
- Defined in:
- lib/faker/games/heroes_of_the_storm.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.battleground ⇒ String
Produces a battleground from Heroes of the Storm.
-
.class ⇒ Object
deprecated
Deprecated.
Use #class_name instead.
-
.class_name ⇒ String
Produces a class name from Heroes of the Storm.
-
.hero ⇒ String
Produces a hero from Heroes of the Storm.
-
.quote ⇒ String
Produces a quote from Heroes of the Storm.
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, translate, unique, with_locale
Class Method Details
.battleground ⇒ String
Produces a battleground from Heroes of the Storm.
16 17 18 |
# File 'lib/faker/games/heroes_of_the_storm.rb', line 16 def battleground fetch('heroes_of_the_storm.battlegrounds') end |
.class ⇒ Object
Use #class_name instead.
This method is deprecated. The implementation will be removed in a near future release. Use ‘HeroesOfTheStorm.class_name` instead.
25 26 27 28 29 |
# File 'lib/faker/games/heroes_of_the_storm.rb', line 25 def class warn '`HeroesOfTheStorm.class` is deprecated. Use `HeroesOfTheStorm.class_name` instead.' super end |
.class_name ⇒ String
Produces a class name from Heroes of the Storm.
40 41 42 |
# File 'lib/faker/games/heroes_of_the_storm.rb', line 40 def class_name fetch('heroes_of_the_storm.class_names') end |
.hero ⇒ String
Produces a hero from Heroes of the Storm.
53 54 55 |
# File 'lib/faker/games/heroes_of_the_storm.rb', line 53 def hero fetch('heroes_of_the_storm.heroes') end |
.quote ⇒ String
Produces a quote from Heroes of the Storm.
66 67 68 |
# File 'lib/faker/games/heroes_of_the_storm.rb', line 66 def quote fetch('heroes_of_the_storm.quotes') end |