Class: Faker::Cosmere

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

.allomancerString

Produces a random allomancer.

Examples:

Faker::Cosmere.allomancer #=> "Coinshot"

Returns:



94
95
96
# File 'lib/faker/default/cosmere.rb', line 94

def allomancer
  sample(allomancers)
end

.aonString

Produces a random aon.

Examples:

Faker::Cosmere.aon #=> "Rao"

Returns:



16
17
18
# File 'lib/faker/default/cosmere.rb', line 16

def aon
  sample(aons)
end

.feruchemistString

Produces a random feruchemist.

Examples:

Faker::Cosmere.feruchemist #=> "Archivist"

Returns:



107
108
109
# File 'lib/faker/default/cosmere.rb', line 107

def feruchemist
  sample(feruchemists)
end

.heraldString

Produces a random herald.

Examples:

Faker::Cosmere.herald #=> "Ishar"

Returns:



120
121
122
# File 'lib/faker/default/cosmere.rb', line 120

def herald
  sample(heralds)
end

.knight_radiantString

Produces a random knight radiant.

Examples:

Faker::Cosmere.knight_radiant #=> "Truthwatcher"

Returns:



68
69
70
# File 'lib/faker/default/cosmere.rb', line 68

def knight_radiant
  sample(knights_radiant)
end

.metalString

Produces a random metal.

Examples:

Faker::Cosmere.metal #=> "Brass"

Returns:



81
82
83
# File 'lib/faker/default/cosmere.rb', line 81

def metal
  sample(metals)
end

.shardString

Produces a random shard.

Examples:

Faker::Cosmere.shard #=> "Ambition"

Returns:



42
43
44
# File 'lib/faker/default/cosmere.rb', line 42

def shard
  sample(shards)
end

.shard_worldString

Produces a random shard world.

Examples:

Faker::Cosmere.shard_world #=> "Yolen"

Returns:



29
30
31
# File 'lib/faker/default/cosmere.rb', line 29

def shard_world
  sample(shard_worlds)
end

.sprenString

Produces a random spren.

Examples:

Faker::Cosmere.spren #=> "Flamespren"

Returns:



133
134
135
# File 'lib/faker/default/cosmere.rb', line 133

def spren
  sample(sprens)
end

.surgeString

Produces a random surge.

Examples:

Faker::Cosmere.surge #=> "Progression"

Returns:



55
56
57
# File 'lib/faker/default/cosmere.rb', line 55

def surge
  sample(surges)
end