Method: Authorize::Graph::Vertex#initialize
- Defined in:
- lib/authorize/graph/vertex.rb
#initialize(properties = {}) ⇒ Vertex
Returns a new instance of Vertex.
16 17 18 19 20 21 |
# File 'lib/authorize/graph/vertex.rb', line 16 def initialize(properties = {}) super() # Because a degenerate vertex can have neither properties nor edges, we must store a marker to indicate existence self.class.db.set(subordinate_key('_'), nil) merge(properties) if properties.any? end |