Class: Faker::Books::TheKingkillerChronicle

Inherits:
Faker::Base
  • Object
show all
Defined in:
lib/faker/books/the_kingkiller_chronicle.rb

Constant Summary

Constants inherited from Faker::Base

Faker::Base::LLetters, Faker::Base::Letters, Faker::Base::NOT_GIVEN, Faker::Base::Numbers, Faker::Base::ULetters

Class Method Summary collapse

Methods inherited from Faker::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

.bookString

Produces the name of a The Kingkiller Chronicle book.

Examples:

Faker::Books::TheKingkillerChronicle.book #=> "The Name of the Wind"

Returns:

  • (String)

Available since:

  • next



16
17
18
# File 'lib/faker/books/the_kingkiller_chronicle.rb', line 16

def book
  fetch('books.the_kingkiller_chronicle.books')
end

.characterString

Produces the name of a The Kingkiller Chronicle character.

Examples:

Faker::Books::TheKingkillerChronicle.character #=> "Kvothe"

Returns:

  • (String)

Available since:

  • next



29
30
31
# File 'lib/faker/books/the_kingkiller_chronicle.rb', line 29

def character
  fetch('books.the_kingkiller_chronicle.characters')
end

.creatureString

Produces the name of a The Kingkiller Chronicle creature.

Examples:

Faker::Books::TheKingkillerChronicle.creature #=> "Scrael"

Returns:

  • (String)

Available since:

  • next



42
43
44
# File 'lib/faker/books/the_kingkiller_chronicle.rb', line 42

def creature
  fetch('books.the_kingkiller_chronicle.creatures')
end

.locationString

Produces the name of a The Kingkiller Chronicle location.

Examples:

Faker::Books::TheKingkillerChronicle.location #=> "Tarbean"

Returns:

  • (String)

Available since:

  • next



55
56
57
# File 'lib/faker/books/the_kingkiller_chronicle.rb', line 55

def location
  fetch('books.the_kingkiller_chronicle.locations')
end