Sha256: 25598b0f406de4788b197c13efcd0079d2c0f8b2762111206e86e55fbf611cb2

Contents?: true

Size: 981 Bytes

Versions: 6

Compression:

Stored size: 981 Bytes

Contents

module SportDb
  module Import

    class Round
      attr_reader   :title, :start_date, :end_date, :knockout
      attr_accessor :pos   # note: make read & writable

      ##
      ##  todo:  change db schema
      ##    make start and end date optional
      ##    change pos to num - why? why not?
      ##    make pos/num optional too
      ##
      ##    sort round by scheduled/planed start date
      def initialize( title:,
                      pos: nil,
                      start_date: nil,
                      end_date: nil,
                      knockout: false,
                      auto: true )
        @title      = title
        @pos        = pos
        @start_date = start_date
        @end_date   = end_date
        @knockout   = knockout
        @auto       = auto        # auto-created (inline reference/header without proper definition before)
      end
    end  # class Round

  end # module Import
end # module SportDb

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sportdb-formats-1.0.5 lib/sportdb/formats/structs/round.rb
sportdb-formats-1.0.4 lib/sportdb/formats/structs/round.rb
sportdb-formats-1.0.3 lib/sportdb/formats/structs/round.rb
sportdb-formats-1.0.2 lib/sportdb/formats/structs/round.rb
sportdb-formats-1.0.1 lib/sportdb/formats/structs/round.rb
sportdb-formats-1.0.0 lib/sportdb/formats/structs/round.rb