Sha256: 62af5a322d5795952d94c7331146c3a0d047c4efd4b8e2f4456baddefa958404

Contents?: true

Size: 602 Bytes

Versions: 76

Compression:

Stored size: 602 Bytes

Contents

module MCollective
  class Aggregate
    module Result
      class Base
        attr_accessor :result, :aggregate_format, :action

        def initialize(result, aggregate_format, action)
          raise "No aggregate_format defined in ddl or aggregate function" unless aggregate_format

          @result = result
          @aggregate_format = aggregate_format
          @action = action
        end

        def to_s
          raise "'to_s' method not implemented for result class '#{self.class}'"
        end

        def result_type
          @result[:type]
        end
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 2 rubygems

Version Path
mcollective-client-2.11.3 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.11.2 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.11.1 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.11.0 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.10.4 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.10.3 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.10.2 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.10.1 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.10.0 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.7 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.5 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.8 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.6 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.9.1 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.9.0 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.9 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.4 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.3 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.2 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.8.1 lib/mcollective/aggregate/result/base.rb