Sha256: 85ff6f27d020886195c0dbc97c9027343dd930da74f76fe006b57356dbdc1b4f

Contents?: true

Size: 799 Bytes

Versions: 2

Compression:

Stored size: 799 Bytes

Contents

module Axiom
  module Adapter
    module Arango
      class Visitor
        class For
          # Visitor handling axiom base relations
          class Base < self

            handle(Axiom::Relation::Base)

            LOCAL_NAME = AQL.name_node('base')

          private

            # Return source of iteration
            #
            # @return [AQL::Node::Name]
            #
            # @api private
            #
            def source
              AQL.name_node(input.name)
            end

            # Return body of for statement
            #
            # @return [AQL::Node::Body]
            #
            # @api private
            #
            def body
              Node::Block.new([return_operation])
            end

          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-arango-adapter-0.0.2 lib/axiom/adapter/arango/visitor/for/base.rb
axiom-arango-adapter-0.0.1 lib/axiom/adapter/arango/visitor/for/base.rb