Class: Faker::TvShows::HowIMetYourMother

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

.catch_phraseString

Produces a catch phrase from How I Met Your Mother.

Examples:

Faker::TvShows::HowIMetYourMother.catch_phrase #=> "Legendary"

Returns:



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

def catch_phrase
  fetch('how_i_met_your_mother.catch_phrase')
end

.characterString

Produces a character from How I Met Your Mother.

Examples:

Faker::TvShows::HowIMetYourMother.character #=> "Barney Stinson"

Returns:



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

def character
  fetch('how_i_met_your_mother.character')
end

.high_fiveString

Produces a high five from How I Met Your Mother.

Examples:

Faker::TvShows::HowIMetYourMother.high_five #=> "Relapse Five"

Returns:



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

def high_five
  fetch('how_i_met_your_mother.high_five')
end

.quoteString

Produces a quote from How I Met Your Mother.

Examples:

Faker::TvShows::HowIMetYourMother.quote
  #=> "Whenever I'm sad, I stop being sad and be awesome instead."

Returns:



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

def quote
  fetch('how_i_met_your_mother.quote')
end