Sha256: 1e245837e06150b24aec4a0297e05487a06ac57403d3e616ab67cbcc0676e974
Contents?: true
Size: 451 Bytes
Versions: 52
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true module Decidim module Core class MetricHistoryType < Decidim::Api::Types::BaseObject field :key, GraphQL::Types::String, "The key value", null: false field :value, GraphQL::Types::Int, "The value for each key", null: false def key MetricObjectPresenter.new(object).attr_date(0) end def value MetricObjectPresenter.new(object).attr_int(1) end end end end
Version data entries
52 entries across 52 versions & 1 rubygems