Module: Gummi::EntityLayer::Entity

Extended by:
ActiveSupport::Concern
Defined in:
lib/gummi/entity_layer/entity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/gummi/entity_layer/entity.rb', line 10

def id
  @id
end

#versionObject

Returns the value of attribute version.



11
12
13
# File 'lib/gummi/entity_layer/entity.rb', line 11

def version
  @version
end

Instance Method Details

#==(other) ⇒ Object



13
14
15
16
17
18
# File 'lib/gummi/entity_layer/entity.rb', line 13

def ==(other)
  other &&
  self.id == other.id &&
  self.version == other.version &&
  self.attributes == other.attributes
end