Class: RubyEventStore::Proto
- Defined in:
- lib/ruby_event_store/mappers/protobuf.rb
Constant Summary
Constants inherited from Event
Instance Attribute Summary
Attributes inherited from Event
Instance Method Summary collapse
Methods inherited from Event
#causation_id, #causation_id=, #correlate_with, #correlation_id, #correlation_id=, #hash, #initialize, #message_id, #timestamp, #to_h
Constructor Details
This class inherits a constructor from RubyEventStore::Event
Instance Method Details
#==(other_event) ⇒ Object
7 8 9 10 11 |
# File 'lib/ruby_event_store/mappers/protobuf.rb', line 7 def ==(other_event) other_event.instance_of?(self.class) && other_event.event_id.eql?(event_id) && other_event.data == data # https://github.com/google/protobuf/issues/4455 end |
#type ⇒ Object
3 4 5 |
# File 'lib/ruby_event_store/mappers/protobuf.rb', line 3 def type data.class.descriptor.name end |