Sha256: 6951252656a7976ca4affcfde712120075bdac759f1f7ced87b10e9181cd4af5

Contents?: true

Size: 482 Bytes

Versions: 17

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Statistics
    module Works
      class OverTime < Statistics::OverTime
        def points
          Enumerator.new(size) do |y|
            x = @x_min
            while x <= @x_max
              y.yield [@x_output.call(x), point(@x_min, x)]
              x += @delta_x.days
            end
          end
        end

        private

        def relation
          Hyrax::WorkRelation.new
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/services/hyrax/statistics/works/over_time.rb
hyrax-5.0.0 app/services/hyrax/statistics/works/over_time.rb
hyrax-5.0.0.rc3 app/services/hyrax/statistics/works/over_time.rb
hyrax-5.0.0.rc2 app/services/hyrax/statistics/works/over_time.rb
hyrax-5.0.0.rc1 app/services/hyrax/statistics/works/over_time.rb
hyrax-3.6.0 app/services/hyrax/statistics/works/over_time.rb
hyrax-4.0.0 app/services/hyrax/statistics/works/over_time.rb
hyrax-4.0.0.rc3 app/services/hyrax/statistics/works/over_time.rb
hyrax-4.0.0.rc2 app/services/hyrax/statistics/works/over_time.rb
hyrax-4.0.0.rc1 app/services/hyrax/statistics/works/over_time.rb
hyrax-3.5.0 app/services/hyrax/statistics/works/over_time.rb
hyrax-4.0.0.beta2 app/services/hyrax/statistics/works/over_time.rb
hyrax-3.4.2 app/services/hyrax/statistics/works/over_time.rb
hyrax-4.0.0.beta1 app/services/hyrax/statistics/works/over_time.rb
hyrax-3.4.1 app/services/hyrax/statistics/works/over_time.rb
hyrax-3.4.0 app/services/hyrax/statistics/works/over_time.rb
hyrax-3.3.0 app/services/hyrax/statistics/works/over_time.rb