Class: Faker::Sports::Volleyball

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

.coachString

Produces the name of a volleyball coach.

Examples:

Faker::Sports::Volleyball.coach #=> "Russ Rose"

Returns:



42
43
44
# File 'lib/faker/sports/volleyball.rb', line 42

def coach
  fetch('volleyball.coach')
end

.formationString

Produces a formation in volleyball.

Examples:

Faker::Sports::Volleyball.formation #=> "4-2"

Returns:



68
69
70
# File 'lib/faker/sports/volleyball.rb', line 68

def formation
  fetch('volleyball.formation')
end

.playerString

Produces the name of a volleyball player.

Examples:

Faker::Sports::Volleyball.player #=> "Saeid Marouf"

Returns:



29
30
31
# File 'lib/faker/sports/volleyball.rb', line 29

def player
  fetch('volleyball.player')
end

.positionString

Produces a position in volleyball.

Examples:

Faker::Sports::Volleyball.position #=> "Middle blocker"

Returns:



55
56
57
# File 'lib/faker/sports/volleyball.rb', line 55

def position
  fetch('volleyball.position')
end

.teamString

Produces the name of a volleyball team.

Examples:

Faker::Sports::Volleyball.team #=> "Leo Shoes Modena"

Returns:



16
17
18
# File 'lib/faker/sports/volleyball.rb', line 16

def team
  fetch('volleyball.team')
end