Class: Faker::Games::Overwatch

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

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.heroString

Produces the name of a hero from Overwatch.

Examples:

Faker::Games::Overwatch.hero #=> "Tracer"

Returns:

  • (String)

Available since:

  • 1.8.0


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

def hero
  fetch('games.overwatch.heroes')
end

.locationString

Produces the name of a location from Overwatch.

Examples:

Faker::Games::Overwatch.location #=> "Numbani"

Returns:

  • (String)

Available since:

  • 1.8.0


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

def location
  fetch('games.overwatch.locations')
end

.quoteString

Produces a quote from Overwatch.

Examples:

Faker::Games::Overwatch.quote #=> "It's high noon"

Returns:

  • (String)

Available since:

  • 1.8.0


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

def quote
  fetch('games.overwatch.quotes')
end