Sha256: 9ac3493a3ccc7b48f4cd9258c06e1731887b9a260053160ab228aff58a1d6582
Contents?: true
Size: 1.01 KB
Versions: 9
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require 'quby/compiler/entities/charting/chart' module Quby module Compiler module Entities module Charting class LineChart < Chart # @return [String] attr_accessor :y_label # @return [Symbol] attr_reader :tonality # @return [Proc] attr_accessor :baseline # @return [Float] attr_accessor :clinically_relevant_change def initialize(key, y_label: nil, tonality: :lower_is_better, baseline: nil, clinically_relevant_change: nil, **kwargs) super(key, **kwargs) self.y_label = y_label self.tonality = tonality self.baseline = baseline self.clinically_relevant_change = clinically_relevant_change end def tonality=(value) fail "Invalid tonality: #{value}" unless [:higher_is_better, :lower_is_better].include?(value) @tonality = value end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems