Sha256: f13402c86fe4d92a0f9f1fbd913a99e570a75c52d6f2392a9833824a527ec955

Contents?: true

Size: 661 Bytes

Versions: 5

Compression:

Stored size: 661 Bytes

Contents

require "arel"

module PluckMap
  class BuildJsonObject < Arel::Nodes::Node
    include Arel::AliasPredication

    attr_reader :args

    def initialize(*args)
      @args = args
    end
  end

  class BuildJsonArray < Arel::Nodes::Node
    include Arel::AliasPredication

    attr_reader :args

    def initialize(*args)
      @args = args
    end
  end

  class JsonArrayAggregate < Arel::Nodes::Node
    attr_reader :arg

    def initialize(arg)
      @arg = arg
    end
  end

  class JsonSubqueryAggregate < Arel::Nodes::Node
    attr_reader :scope, :select

    def initialize(scope, select)
      @scope = scope
      @select = select
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pluck_map-2.0.0 lib/pluck_map/nodes.rb
pluck_map-2.0.0.rc1 lib/pluck_map/nodes.rb
pluck_map-1.0.0 lib/pluck_map/nodes.rb
pluck_map-1.0.0.rc2 lib/pluck_map/nodes.rb
pluck_map-1.0.0.rc1 lib/pluck_map/nodes.rb