Module: FFaker::Airline
Instance Method Summary collapse
Methods included from ModuleUtils
const_missing, k, luhn_check, underscore, unique
Methods included from RandomUtils
#fetch_sample, #rand, #shuffle
Instance Method Details
#flight_number ⇒ Object
12 13 14 |
# File 'lib/ffaker/airline.rb', line 12 def flight_number "#{fetch_sample(CODES_LIST)} #{rand(1..3999)}" end |
#name ⇒ Object
8 9 10 |
# File 'lib/ffaker/airline.rb', line 8 def name fetch_sample(NAMES_LIST) end |