Sha256: 8135eaf67f7c2f9a68f762accea02571f98d9c1593aec349d5304bcd7fd5a4e3

Contents?: true

Size: 193 Bytes

Versions: 8

Compression:

Stored size: 193 Bytes

Contents

module ForemanStatistics
  module Statistics
    class CountHosts < Base
      def calculate
        Host.authorized(:view_hosts, Host).count_distribution(count_by)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_statistics-1.2.0 app/services/foreman_statistics/statistics/count_hosts.rb
foreman_statistics-1.1.1 app/services/foreman_statistics/statistics/count_hosts.rb
foreman_statistics-1.1.0 app/services/foreman_statistics/statistics/count_hosts.rb
foreman_statistics-1.0.0 app/services/foreman_statistics/statistics/count_hosts.rb
foreman_statistics-0.1.3 app/services/foreman_statistics/statistics/count_hosts.rb
foreman_statistics-0.1.2 app/services/foreman_statistics/statistics/count_hosts.rb
foreman_statistics-0.1.1 app/services/foreman_statistics/statistics/count_hosts.rb
foreman_statistics-0.1.0 app/services/foreman_statistics/statistics/count_hosts.rb