Sha256: 62af5a322d5795952d94c7331146c3a0d047c4efd4b8e2f4456baddefa958404

Contents?: true

Size: 602 Bytes

Versions: 75

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

75 entries across 75 versions & 2 rubygems

Version Path
choria-mcorpc-support-2.26.4 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.26.3 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.26.2 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.26.1 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.26.0 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.25.3 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.25.2 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.25.1 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.25.0 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.24.4 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.24.3 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.24.2 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.24.1 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.24.0 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.23.3 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.23.2 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.23.1 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.23.0 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.23.0.pre lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.22.1 lib/mcollective/aggregate/result/base.rb