Class: Faker::TvShows::Stargate

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/tv_shows/stargate.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, translate, unique, with_locale

Class Method Details

.characterString

Produces a character from Stargate.

Examples:

Faker::TvShows::Stargate.character #=> "Jack O'Neill"

Returns:

  • (String)

Available since:

  • 1.8.5



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

def character
  fetch('stargate.characters')
end

.planetString

Produces a planet from Stargate.

Examples:

Faker::TvShows::Stargate.planet #=> "Abydos"

Returns:

  • (String)

Available since:

  • 1.8.5



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

def planet
  fetch('stargate.planets')
end

.quoteString

Produces a quote from Stargate.

Examples:

Faker::TvShows::Stargate.quote
  #=> "General, request permission to beat the crap out of this man."

Returns:

  • (String)

Available since:

  • 1.8.5



45
46
47
# File 'lib/faker/tv_shows/stargate.rb', line 45

def quote
  fetch('stargate.quotes')
end