Class: Cgraph::Entity
- Inherits:
-
Object
- Object
- Cgraph::Entity
- Defined in:
- lib/cgraph.rb
Constant Summary collapse
- @@count =
0
- @@names =
[]
Instance Attribute Summary collapse
-
#group ⇒ Object
Returns the value of attribute group.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#outgoing ⇒ Object
Returns the value of attribute outgoing.
-
#picture ⇒ Object
Returns the value of attribute picture.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
Instance Attribute Details
#group ⇒ Object
Returns the value of attribute group.
6 7 8 |
# File 'lib/cgraph.rb', line 6 def group @group end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/cgraph.rb', line 7 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'lib/cgraph.rb', line 6 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/cgraph.rb', line 7 def name @name end |
#outgoing ⇒ Object
Returns the value of attribute outgoing.
6 7 8 |
# File 'lib/cgraph.rb', line 6 def outgoing @outgoing end |
#picture ⇒ Object
Returns the value of attribute picture.
6 7 8 |
# File 'lib/cgraph.rb', line 6 def picture @picture end |
Class Method Details
.clear_namelist ⇒ Object
15 16 17 |
# File 'lib/cgraph.rb', line 15 def self.clear_namelist @@names = [] end |