Class: Faker::TvShows::NewGirl

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

Examples:

Faker::TvShows::NewGirl.character #=> "Jessica Day"

Returns:

  • (String)

Available since:

  • 1.9.0


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

def character
  fetch('new_girl.characters')
end

.quoteString

Produces a quote from New Girl.

Examples:

Faker::TvShows::NewGirl.quote
  #=> "Are you cooking a frittata in a sauce pan? What is this - prison?"

Returns:

  • (String)

Available since:

  • 1.9.0


32
33
34
# File 'lib/faker/tv_shows/new_girl.rb', line 32

def quote
  fetch('new_girl.quotes')
end