Class: Faker::Games::Fallout

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/fallout.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

.characterString

Produces the name of a character from the Fallout games.

Examples:

Faker::Games::Fallout.character #=> "Liberty Prime"

Returns:

  • (String)

Available since:

  • 1.9.2


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

def character
  fetch('games.fallout.characters')
end

.factionString

Produces the name of a faction from the Fallout games.

Examples:

Faker::Games::Fallout.faction #=> "Brotherhood of Steel"

Returns:

  • (String)

Available since:

  • 1.9.2


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

def faction
  fetch('games.fallout.factions')
end

.locationString

Produces the name of a location from the Fallout games.

Examples:

Faker::Games::Fallout.location #=> "New Vegas"

Returns:

  • (String)

Available since:

  • 1.9.2


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

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

.quoteString

Produces a quote from the Fallout games.

Examples:

Faker::Games::Fallout.quote
  #=> "Democracy is non-negotiable"

Returns:

  • (String)

Available since:

  • 1.9.2


56
57
58
# File 'lib/faker/games/fallout.rb', line 56

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