Class: Faker::Movies::Avatar

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

Examples:

Faker::Movies::Avatar.character #=> "Jake Sully"

Returns:

  • (String)

Available since:

  • next



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

def character
  fetch('avatar.characters')
end

.dateString

Produces a date from Avatar.

Examples:

Faker::Movies::Avatar.date #=> "December 15, 2022"

Returns:

  • (String)

Available since:

  • next



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

def date
  fetch('avatar.dates')
end

.quoteString

Produces a quote from Avatar.

Examples:

Faker::Movies::Avatar.quote
  #=> "If it ain't raining, we ain't training."

Returns:

  • (String)

Available since:

  • next



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

def quote
  fetch('avatar.quotes')
end