class Faker::Military

Public Class Methods

air_force_rank() click to toggle source

Produces a rank in the U.S. Air Force.

@return [String]

@example

Faker::Military.air_force_rank #=> "Captain"

@faker.version 1.9.0

# File lib/faker/default/military.rb, line 54
def air_force_rank
  fetch('military.air_force_rank')
end
army_rank() click to toggle source

Produces a rank in the U.S. Army.

@return [String]

@example

Faker::Military.army_rank #=> "Staff Sergeant"

@faker.version 1.9.0

# File lib/faker/default/military.rb, line 15
def army_rank
  fetch('military.army_rank')
end
coast_guard_rank() click to toggle source

Produces a rank in the U.S. Coast Guard

@return [String]

@example

Faker::Military.coast_guard_rank #=> "Master Chief Petty Officer of the Coast Guard"

@faker.version next

# File lib/faker/default/military.rb, line 80
def coast_guard_rank
  fetch('military.coast_guard_rank')
end
dod_paygrade() click to toggle source

Produces a U.S. Department of Defense Paygrade.

@return [String]

@example

Faker::Military.dod_paygrade #=> "E-6"

@faker.version 1.9.0

# File lib/faker/default/military.rb, line 93
def dod_paygrade
  fetch('military.dod_paygrade')
end
marines_rank() click to toggle source

Produces a rank in the U.S. Marines.

@return [String]

@example

Faker::Military.marines_rank #=> "Gunnery Sergeant"

@faker.version 1.9.0

# File lib/faker/default/military.rb, line 28
def marines_rank
  fetch('military.marines_rank')
end
navy_rank() click to toggle source

Produces a rank in the U.S. Navy.

@return [String]

@example

Faker::Military.navy_rank #=> "Seaman"

@faker.version 1.9.0

space_force_rank() click to toggle source

Produces a rank in the U.S. Space Force.

@return [String]

@example

Faker::Military.space_force_rank #=> "Senior Enlisted Advisor of the Space Force"

@faker.version next

# File lib/faker/default/military.rb, line 67
def space_force_rank
  fetch('military.space_force_rank')
end