Sha256: 3644c9059a0996a724679a1511855e09e29dd2ff7611871b9ebc9e25f149c826

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

module Axiom
  module Adapter
    module Arango
      class Visitor
        # Visitor for attribute accesses
        class Attribute < self

          handle(Axiom::Attribute::String)
          handle(Axiom::Attribute::Integer)

          # Return root AQL node
          #
          # @return [AQL::Node]
          #
          # @api private
          #
          def root
            Node::Attribute.new(context.local_name, AQL.name_node(input.name))
          end
          memoize :root

        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/attribute.rb
axiom-arango-adapter-0.0.1 lib/axiom/adapter/arango/visitor/attribute.rb