Class: Faker::TvShows::GameOfThrones

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

.characterString

Produces a character from Game of Thrones.

Examples:

Faker::TvShows::GameOfThrones.character #=> "Tyrion Lannister"

Returns:



18
19
20
# File 'lib/faker/tv_shows/game_of_thrones.rb', line 18

def character
  fetch('game_of_thrones.characters')
end

.cityString

Produces a city from Game of Thrones.

Examples:

Faker::TvShows::GameOfThrones.city #=> "Lannisport"

Returns:



44
45
46
# File 'lib/faker/tv_shows/game_of_thrones.rb', line 44

def city
  fetch('game_of_thrones.cities')
end

.dragonString

Produces a dragon from Game of Thrones.

Examples:

Faker::TvShows::GameOfThrones.dragon #=> "Drogon"

Returns:



71
72
73
# File 'lib/faker/tv_shows/game_of_thrones.rb', line 71

def dragon
  fetch('game_of_thrones.dragons')
end

.houseString

Produces a house from Game of Thrones.

Examples:

Faker::TvShows::GameOfThrones.house #=> "Stark"

Returns:



31
32
33
# File 'lib/faker/tv_shows/game_of_thrones.rb', line 31

def house
  fetch('game_of_thrones.houses')
end

.quoteString

Produces a quote from Game of Thrones.

Examples:

Faker::TvShows::GameOfThrones.quote
  #=> "Never forget who you are. The rest of the world won't. Wear it like an armor and it can never be used against you."

Returns:



58
59
60
# File 'lib/faker/tv_shows/game_of_thrones.rb', line 58

def quote
  fetch('game_of_thrones.quotes')
end