Sha256: cebdfbb9031eb25110f2352896a998b00aa2f986326cae722c06eee13fa2d1d1

Contents?: true

Size: 490 Bytes

Versions: 5

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

module Faker
  class WorldCup < Base
    class << self
      def team
        fetch('world_cup.teams')
      end

      def city
        fetch('world_cup.cities')
      end

      def stadium
        fetch('world_cup.stadiums')
      end

      def group(group: 'group_A')
        fetch("world_cup.groups.#{group}")
      end

      def roster(country: 'Egypt', type: 'coach')
        fetch("world_cup.rosters.#{country}.#{type}")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
faker-2.1.2 lib/faker/default/world_cup.rb
faker-2.1.1 lib/faker/default/world_cup.rb
faker-2.1.0 lib/faker/default/world_cup.rb
faker-2.0.0 lib/faker/default/world_cup.rb
faker-2.0 lib/faker/default/world_cup.rb