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, 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:



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

def battleground
  fetch('heroes_of_the_storm.battlegrounds')
end

.classObject

Deprecated.

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_nameString

Produces a class name from Heroes of the Storm.

Examples:

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

Returns:



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

.heroString

Produces a hero from Heroes of the Storm.

Examples:

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

Returns:



53
54
55
# File 'lib/faker/games/heroes_of_the_storm.rb', line 53

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:



66
67
68
# File 'lib/faker/games/heroes_of_the_storm.rb', line 66

def quote
  fetch('heroes_of_the_storm.quotes')
end