Class: Metasploit::ERD::Diagram
- Inherits:
-
RailsERD::Diagram::Graphviz
- Object
- RailsERD::Diagram::Graphviz
- Metasploit::ERD::Diagram
- Defined in:
- lib/metasploit/erd/diagram.rb
Overview
A diagram specialized with default options that work well with Clusterable#domain.
Constant Summary collapse
- ATTRIBUTES =
Enable all attributes
[ :content, :foreign_keys, :primary_keys, :timestamps ]
- FILETYPE =
File type that work for embedding in web pages and is lossless.
:png
- INDIRECT =
Only show direct relationships because anything indirect can be found by tracing the direct arrows and only showing direct relationships cuts down on cluster
false
- INHERITANCE =
Show inheritance for Single Table Inheritance
true
- NOTATION =
Use crowsfoot notation since its what metasploit uses for manually drawn and graffle diagrams.
:crowsfoot
- POLYMORPHISM =
Show polymorphic association connections as they are traced by Relationship#polymorphic_class_set.
true
- DEFAULT_OPTIONS =
Default options for #initialize
{ attributes: ATTRIBUTES, filetype: FILETYPE, indirect: INDIRECT, inheritance: INHERITANCE, notation: NOTATION, polymorphism: POLYMORPHISM }
Instance Method Summary collapse
-
#initialize(domain, options = {}) ⇒ Diagram
constructor
A new instance of Diagram.
Constructor Details
#initialize(domain, options = {}) ⇒ Diagram
Returns a new instance of Diagram.
84 85 86 87 88 |
# File 'lib/metasploit/erd/diagram.rb', line 84 def initialize(domain, ={}) = DEFAULT_OPTIONS.merge() super(domain, ) end |