Module: FFaker::Airline

Extended by:
Airline, ModuleUtils
Included in:
Airline
Defined in:
lib/ffaker/airline.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#flight_numberObject


12
13
14
# File 'lib/ffaker/airline.rb', line 12

def flight_number
  "#{fetch_sample(CODES_LIST)} #{rand(1..3999)}"
end

#nameObject


8
9
10
# File 'lib/ffaker/airline.rb', line 8

def name
  fetch_sample(NAMES_LIST)
end