Class: Faker::Military

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

Constant Summary

Constants inherited from Base

Base::Letters, 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

.air_force_rankObject


18
19
20
# File 'lib/faker/default/military.rb', line 18

def air_force_rank
  fetch('military.air_force_rank')
end

.army_rankObject


6
7
8
# File 'lib/faker/default/military.rb', line 6

def army_rank
  fetch('military.army_rank')
end

.dod_paygradeObject


22
23
24
# File 'lib/faker/default/military.rb', line 22

def dod_paygrade
  fetch('military.dod_paygrade')
end

.marines_rankObject


10
11
12
# File 'lib/faker/default/military.rb', line 10

def marines_rank
  fetch('military.marines_rank')
end

14
15
16
# File 'lib/faker/default/military.rb', line 14

def navy_rank
  fetch('military.navy_rank')
end