Class: Faker::Movies::Departed

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

.actorString

Produces an actor from The Departed.

Examples:

Faker::Movies::Departed.actor #=> "Matt Damon"

Returns:

  • (String)

Available since:

  • 2.13.0



16
17
18
# File 'lib/faker/movies/departed.rb', line 16

def actor
  fetch('departed.actors')
end

.characterString

Produces a character from The Departed.

Examples:

Faker::Movies::Departed.character #=> "Frank Costello"

Returns:

  • (String)

Available since:

  • 2.13.0



29
30
31
# File 'lib/faker/movies/departed.rb', line 29

def character
  fetch('departed.characters')
end

.quoteString

Produces a quote from The Departed.

Examples:

Faker::Movies::Departed.quote
  #=> "I'm the guy who does his job. You must be the other guy"

Returns:

  • (String)

Available since:

  • 2.13.0



43
44
45
# File 'lib/faker/movies/departed.rb', line 43

def quote
  fetch('departed.quotes')
end