Class: Faker::Games::ElderScrolls

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

.cityString

Produces the name of a city from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.city #=> "Whiterun"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def city
  fetch('games.elder_scrolls.city')
end

.creatureString

Produces the name of a creature from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.creature #=> "Frost Troll"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def creature
  fetch('games.elder_scrolls.creature')
end

.dragonString

Produces the name of a dragon from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.dragon #=> "Blood Dragon"

Returns:

  • (String)

Available since:

  • 1.9.2



68
69
70
# File 'lib/faker/games/elder_scrolls.rb', line 68

def dragon
  fetch('games.elder_scrolls.dragon')
end

.first_nameString

Produces a first name from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.first_name #=> "Balgruuf"

Returns:

  • (String)

Available since:

  • 1.9.2



94
95
96
# File 'lib/faker/games/elder_scrolls.rb', line 94

def first_name
  fetch('games.elder_scrolls.first_name')
end

.jewelryString

Produces a weapon from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.jewelry #=> "Silver Ruby Ring"

Returns:

  • (String)

Available since:

  • next



133
134
135
# File 'lib/faker/games/elder_scrolls.rb', line 133

def jewelry
  fetch('games.elder_scrolls.jewelry')
end

.last_nameString

Produces a last name from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.last_name #=> "The Old"

Returns:

  • (String)

Available since:

  • 1.9.2



107
108
109
# File 'lib/faker/games/elder_scrolls.rb', line 107

def last_name
  fetch('games.elder_scrolls.last_name')
end

.nameString

Produces a randomly generated name from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.name #=> "Balgruuf The Old"

Returns:

  • (String)

Available since:

  • 1.9.2



81
82
83
# File 'lib/faker/games/elder_scrolls.rb', line 81

def name
  "#{fetch('games.elder_scrolls.first_name')} #{fetch('games.elder_scrolls.last_name')}"
end

.raceString

Produces the name of a race from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.race #=> "Argonian"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def race
  fetch('games.elder_scrolls.race')
end

.regionString

Produces the name of a region from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.region #=> "Cyrodiil"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def region
  fetch('games.elder_scrolls.region')
end

.weaponString

Produces a weapon from the Elder Scrolls universe.

Examples:

Faker::Games::ElderScrolls.weapon #=> "Elven Bow"

Returns:

  • (String)

Available since:

  • next



120
121
122
# File 'lib/faker/games/elder_scrolls.rb', line 120

def weapon
  fetch('games.elder_scrolls.weapon')
end