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.22.0 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.21.1 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.21.0 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.8 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.12.5 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.7 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.6 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.5 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.4 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.3 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.2 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-2.20.0 lib/mcollective/aggregate/result/base.rb
choria-mcorpc-support-0.0.1 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.12.4 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.12.3 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.12.1 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.12.0 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.10.6 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.11.4 lib/mcollective/aggregate/result/base.rb
mcollective-client-2.11.3 lib/mcollective/aggregate/result/base.rb