Sha256: e378bce2a90a46769a5976e18c250b2500f70d76d84a286355ec8959e91715a8

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

module SportsManager
  class TournamentSolution
    # Public: A placeholder fixture for byes.
    class ByeFixture
      extend Forwardable

      attr_reader :match, :category

      def_delegator :match, :id, :match_id
      def_delegators :match, :title, :depends_on, :playable?,
                     :dependencies, :dependencies?

      def initialize(match)
        @match = match
        @category = match.category
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sports-manager-0.0.3 lib/sports_manager/tournament_solution/bye_fixture.rb
sports-manager-0.0.2 lib/sports_manager/tournament_solution/bye_fixture.rb
sports-manager-0.0.1 lib/sports_manager/tournament_solution/bye_fixture.rb