Class: Faker::Music::Hiphop

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

.artistString

Produces the name of a Hip Hop Artist

Examples:

Faker::Music::Hiphop.artist #=> "Lil Wayne"

Returns:

  • (String)

Available since:

  • next


16
17
18
# File 'lib/faker/music/hiphop.rb', line 16

def artist
  fetch('hiphop.artist')
end

.groupsString

Produces the name of a Hip Hop Group

Examples:

Faker::Music::Hiphop.groups #=> "OVO"

Returns:

  • (String)

Available since:

  • next


29
30
31
# File 'lib/faker/music/hiphop.rb', line 29

def groups
  fetch('hiphop.groups')
end

.subgenresString

Produces the name of a Hip Hop Subgenre

Examples:

Faker::Music::Hiphop.subgeneres #=> "Alternative"

Returns:

  • (String)

Available since:

  • next


42
43
44
# File 'lib/faker/music/hiphop.rb', line 42

def subgenres
  fetch('hiphop.subgenres')
end