Class: Everlog::Dom::Entity
- Inherits:
-
Object
- Object
- Everlog::Dom::Entity
- Defined in:
- lib/everlog/dom/entity.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Aggregate, Config, Content
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id = 0) ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize(id = 0) ⇒ Entity
Returns a new instance of Entity.
8 9 10 |
# File 'lib/everlog/dom/entity.rb', line 8 def initialize id = 0 @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/everlog/dom/entity.rb', line 6 def id @id end |