Sha256: f4329928678177789027f5e21bbc8f4f697687a120010d375b55512dc46db210

Contents?: true

Size: 250 Bytes

Versions: 9

Compression:

Stored size: 250 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  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

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 lib/ffakerTW/airline.rb
ffakerTW-1.7.0 lib/ffakerTW/airline.rb
ffakerTW-1.6.0 lib/ffakerTW/airline.rb
ffakerTW-1.5.0 lib/ffakerTW/airline.rb
ffakerTW-1.4.0 lib/ffakerTW/airline.rb
ffakerTW-1.3.0 lib/ffakerTW/airline.rb
ffakerTW-1.2.0 lib/ffakerTW/airline.rb
ffakerTW-1.1.0 lib/ffakerTW/airline.rb
ffakerTW-0.1.0 lib/ffakerTW/airline.rb