module Queri
  class Stats
    class AnsweredCalls
      class AnsweredCallsByStints < Queri::Stats
        include CompositeReportHelpers

        class << self
          def xml_code
            AnsweredCalls.xml_code + ".StintsOk"
          end

          def key_translations
            ActiveSupport::OrderedHash[
              :number_of_stints, "Number of stints",
              :number_of_calls, "N. Calls",
              :percentage_of_calls, "&nbsp;",
              :placeholder_for_bar_graph, "..."
            ]
          end
        end
      end
    end
  end
end
