Sha256: 92e6b53868b92f4cca25449418a3ca9618aaad89bcbee7361c96228119d11be5

Contents?: true

Size: 248 Bytes

Versions: 12

Compression:

Stored size: 248 Bytes

Contents

# frozen_string_literal: true

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

12 entries across 12 versions & 1 rubygems

Version Path
ffaker-2.23.0 lib/ffaker/airline.rb
ffaker-2.22.0 lib/ffaker/airline.rb
ffaker-2.21.0 lib/ffaker/airline.rb
ffaker-2.20.0 lib/ffaker/airline.rb
ffaker-2.19.0 lib/ffaker/airline.rb
ffaker-2.18.0 lib/ffaker/airline.rb
ffaker-2.17.0 lib/ffaker/airline.rb
ffaker-2.16.0 lib/ffaker/airline.rb
ffaker-2.15.0 lib/ffaker/airline.rb
ffaker-2.14.0 lib/ffaker/airline.rb
ffaker-2.13.0 lib/ffaker/airline.rb
ffaker-2.12.0 lib/ffaker/airline.rb