Class: Metacosm::Event

Inherits:
Object
  • Object
show all
Includes:
PassiveRecord
Defined in:
lib/metacosm.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



32
33
34
# File 'lib/metacosm.rb', line 32

def ==(other)
  attrs == other.attrs
end

#attrsObject



28
29
30
# File 'lib/metacosm.rb', line 28

def attrs
  to_h.keep_if { |k,_| k != :id }
end