Class: Faker::TvShows::Archer

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

Examples:

Faker::TvShows::Archer.character #=> "Sterling Archer"

Returns:

  • (String)

Available since:

  • next



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

def character
  fetch('archer.characters')
end

.locationString

Produces a location from Archer.

Examples:

Faker::TvShows::Archer.location #=> "The Tuntmore Towers"

Returns:

  • (String)

Available since:

  • next



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

def location
  fetch('archer.locations')
end

.quoteString

Produces a quote from Archer.

Examples:

Faker::TvShows::Archer.quote
  #=> "You're not my supervisor!"

Returns:

  • (String)

Available since:

  • next



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

def quote
  fetch('archer.quotes')
end