Class: ActiveGraph::Core::Type

Inherits:
Element
  • Object
show all
Defined in:
lib/active_graph/core/type.rb

Instance Attribute Summary

Attributes inherited from Element

#name

Instance Method Summary collapse

Methods inherited from Element

#constraint?, #constraints, #create_constraint, #create_index, #drop_constraint, drop_constraints, #drop_index, #drop_indexes, drop_indexes, #drop_uniqueness_constraint, #index?, #indexes, indexes, #initialize, #uniqueness_constraint?, #uniqueness_constraints

Constructor Details

This class inherits a constructor from ActiveGraph::Core::Element

Instance Method Details

#element_typeObject



8
9
10
# File 'lib/active_graph/core/type.rb', line 8

def element_type
  'RELATIONSHIP'
end

#pattern(spec) ⇒ Object



4
5
6
# File 'lib/active_graph/core/type.rb', line 4

def pattern(spec)
  "()-[#{spec}]-()"
end