Class: Faker::Games::HeroesOfTheStorm

Inherits:
Base
  • Object
show all
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

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

.battlegroundString

Produces a battleground from Heroes of the Storm.

Examples:

Faker::Games::HeroesOfTheStorm.battleground #=> "Towers of Doom"

Returns:

  • (String)

Available since:

  • 1.9.2



16
17
18
# File 'lib/faker/games/heroes_of_the_storm.rb', line 16

def battleground
  fetch('heroes_of_the_storm.battlegrounds')
end

.class_nameString

Produces a class name from Heroes of the Storm.

Examples:

Faker::Games::HeroesOfTheStorm.class_name #=> "Support"

Returns:

  • (String)

Available since:

  • 2.13.0



29
30
31
# File 'lib/faker/games/heroes_of_the_storm.rb', line 29

def class_name
  fetch('heroes_of_the_storm.class_names')
end

.heroString

Produces a hero from Heroes of the Storm.

Examples:

Faker::Games::HeroesOfTheStorm.hero #=> "Illidan"

Returns:

  • (String)

Available since:

  • 1.9.2



42
43
44
# File 'lib/faker/games/heroes_of_the_storm.rb', line 42

def hero
  fetch('heroes_of_the_storm.heroes')
end

.quoteString

Produces a quote from Heroes of the Storm.

Examples:

Faker::Games::HeroesOfTheStorm.quote #=> "MEAT!!!"

Returns:

  • (String)

Available since:

  • 1.9.2



55
56
57
# File 'lib/faker/games/heroes_of_the_storm.rb', line 55

def quote
  fetch('heroes_of_the_storm.quotes')
end