Sha256: 0fce2f86f2bce5f8f00eb354b6c56933837f2cb874ac56d90310fa9a40585d54

Contents?: true

Size: 462 Bytes

Versions: 199

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbStatValue
    class StatValue
      include Playbook::Props
      include ActionView::Helpers::NumberHelper

      partial "pb_stat_value/stat_value"

      prop :unit
      prop :value, type: Playbook::Props::Number

      def formatted_value
        number_with_delimiter(value, delimiter: ",")
      end

      def classname
        generate_classname("pb_stat_value_kit")
      end
    end
  end
end

Version data entries

199 entries across 199 versions & 1 rubygems

Version Path
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.15.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.15.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.14.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.13.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.12.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.12.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.11.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.11.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.10.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.9.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.8.4 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.8.3 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.8.2 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.8.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.8.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb