Sha256: 2f8cf0e7ac218dd6862241c3b0c29c42bc6f1deeb6833ec24442772c6323944c
Contents?: true
Size: 830 Bytes
Versions: 148
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true module Playbook module PbStatChange class StatChange include Playbook::Props partial "pb_stat_change/stat_change" prop :change, type: Playbook::Props::Enum, values: %w[neutral increase decrease], default: "neutral" prop :value, type: Playbook::Props::Numeric def status case change when "increase" "positive" when "decrease" "negative" else "neutral" end end def icon case change when "increase" "arrow-up" when "decrease" "arrow-down" else false end end def classname generate_classname("pb_stat_change_kit", status) end end end end
Version data entries
148 entries across 148 versions & 1 rubygems