module Arcade class Edge < Base # schema schema.strict # -- throws an error if specified keys are missing attribute :in, Types::Rid attribute :out, Types::Rid def accepted_methods super + [ :vertices, :in, :out, :inV, :outV ] end # # Add Contrains to the edge # CREATE INDEX Watched_out_in ON #{invariant_attributes}->#{ attributes[:in] }>" end end end