Class: RailsGraph::Graph::Nodes::VirtualModel

Inherits:
RailsGraph::Graph::Node show all
Defined in:
lib/rails_graph/graph/nodes/virtual_model.rb

Instance Attribute Summary

Attributes inherited from RailsGraph::Graph::Node

#labels

Attributes inherited from Entity

#id, #name, #properties

Instance Method Summary collapse

Methods inherited from RailsGraph::Graph::Node

#as_json

Constructor Details

#initialize(name) ⇒ VirtualModel

Returns a new instance of VirtualModel.



9
10
11
12
13
14
15
# File 'lib/rails_graph/graph/nodes/virtual_model.rb', line 9

def initialize(name)
  super(
    labels: "VirtualModel",
    name: name,
    properties: {}
  )
end

Instance Method Details

#identifierObject



17
18
19
# File 'lib/rails_graph/graph/nodes/virtual_model.rb', line 17

def identifier
  name
end