Sha256: 91d3cec4c32c86cfa6996af5d91452f9ed8c12a9a3f28e084c24d6932558b98f

Contents?: true

Size: 316 Bytes

Versions: 3

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

module Panda
  module CMS
    module Admin
      class StatisticsComponent < ViewComponent::Base
        attr_reader :metric
        attr_reader :value

        def initialize(metric:, value:)
          @metric = metric
          @value = value
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 app/components/panda/cms/admin/statistics_component.rb
panda-cms-0.7.2 app/components/panda/cms/admin/statistics_component.rb
panda-cms-0.7.0 app/components/panda/cms/admin/statistics_component.rb