Class: Everlog::Dom::Entity

Inherits:
Object
  • Object
show all
Defined in:
lib/everlog/dom/entity.rb

Direct Known Subclasses

Aggregate::DailyReport, Config, Content

Defined Under Namespace

Classes: Aggregate, Config, Content

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/everlog/dom/entity.rb', line 6

def id
  @id
end