Class: Faker::BossaNova

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/bossa_nova.rb

Constant Summary

Constants inherited from Base

Faker::Base::LLetters, Faker::Base::Letters, Faker::Base::NOT_GIVEN, Faker::Base::Numbers, Faker::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

.artistString

Produces the name of a bossa nova artist.

Examples:

Faker::BossaNova.artist #=> "Tom Jobin"

Returns:

  • (String)

Available since:

  • 1.8.3



15
16
17
# File 'lib/faker/default/bossa_nova.rb', line 15

def artist
  fetch('bossa_nova.artists')
end

.songString

Produces a bossa nova song.

Examples:

Faker::BossaNova.song #=> "Chega de Saudade"

Returns:

  • (String)

Available since:

  • 1.8.3



28
29
30
# File 'lib/faker/default/bossa_nova.rb', line 28

def song
  fetch('bossa_nova.songs')
end