Class: Faker::Religion::Bible

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

Returns a random bible character.

Faker::Religion::Bible.character #=> “Jesus”

Returns:

  • (String)

Available since:

  • next


18
19
20
# File 'lib/faker/religion/bible.rb', line 18

def character
  fetch('bible.character')
end

.locationString

Returns a random location(city or town) from the bible

Faker::Religion::Bible.location #=> “Nasareth”

Returns:

  • (String)

Available since:

  • next


31
32
33
# File 'lib/faker/religion/bible.rb', line 31

def location
  fetch('bible.location')
end

.quoteString

Returns a random quote from the location.

Faker::Religion::Bible.quote #=> “Seek first the kingdom of God ”

Returns:

  • (String)

Available since:

  • next


44
45
46
# File 'lib/faker/religion/bible.rb', line 44

def quote
  fetch('bible.quote')
end