Sha256: d2f3a039c4cc04bc48a02ba3545629a1d8295875e1346d54b603f646b7c7819c

Contents?: true

Size: 357 Bytes

Versions: 13

Compression:

Stored size: 357 Bytes

Contents

require 'active_reporter/aggregator/base'

module ActiveReporter
  module Calculator
    class Base < ActiveReporter::Aggregator::Base
      def aggregator
        opts[:aggregator] || name
      end

      def parent_aggregator
        opts[:parent_aggregator] || aggregator
      end

      def totals?
        !!opts[:totals]
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active_reporter-0.7.1 lib/active_reporter/calculator/base.rb
active_reporter-0.6.5 lib/active_reporter/calculator/base.rb
active_reporter-0.6.4 lib/active_reporter/calculator/base.rb
active_reporter-0.6.3 lib/active_reporter/calculator/base.rb
active_reporter-0.6.2 lib/active_reporter/calculator/base.rb
active_reporter-0.6.1 lib/active_reporter/calculator/base.rb
active_reporter-0.6.0 lib/active_reporter/calculator/base.rb
active_reporter-0.5.13 lib/active_reporter/calculator/base.rb
active_reporter-0.5.12 lib/active_reporter/calculator/base.rb
active_reporter-0.5.11 lib/active_reporter/calculator/base.rb
active_reporter-0.5.10 lib/active_reporter/calculator/base.rb
active_reporter-0.5.9 lib/active_reporter/calculator/base.rb
active_reporter-0.5.8 lib/active_reporter/calculator/base.rb