Sha256: fdf2376d2a0a7b02f2ec4e7b8eba6b23c1c929c7f40aec22c1e59697d9e050dc

Contents?: true

Size: 236 Bytes

Versions: 10

Compression:

Stored size: 236 Bytes

Contents

# encoding: utf-8

module FFaker
  module Airline
    extend ModuleUtils
    extend self

    def name
      fetch_sample(NAMES_LIST)
    end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 lib/ffaker/airline.rb
ffaker-2.10.0 lib/ffaker/airline.rb
ffaker-2.9.0 lib/ffaker/airline.rb
ffaker-2.8.1 lib/ffaker/airline.rb
ffaker-2.8.0 lib/ffaker/airline.rb
ffaker-2.7.0 lib/ffaker/airline.rb
ffaker-2.6.0 lib/ffaker/airline.rb
ffaker-2.5.0 lib/ffaker/airline.rb
ffaker-2.4.0 lib/ffaker/airline.rb
ffaker-2.3.0 lib/ffaker/airline.rb