Sha256: 391376de86bce3a537bb9344f71978f2b3e9a7c449f13288e97ba21674058e31

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

# frozen_string_literal: true

module SportsManager
  class SolutionDrawer
    class Mermaid
      class ByeNode
        extend Forwardable

        attr_reader :fixture

        def_delegators :fixture, :match_id, :category, :title

        def initialize(fixture)
          @fixture = fixture
        end

        def name
          "#{category}_#{match_id}"
        end

        def definition
          "#{name}[\"#{description}\"]:::#{style_class}"
        end

        def style_class
          'court'
        end

        def description
          "#{match_id}\\n#{title}"
        end

        def links?
          false
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sports-manager-0.0.3 lib/sports_manager/solution_drawer/mermaid/bye_node.rb
sports-manager-0.0.2 lib/sports_manager/solution_drawer/mermaid/bye_node.rb
sports-manager-0.0.1 lib/sports_manager/solution_drawer/mermaid/bye_node.rb