class SimpleEventSourcing::Id::BaseId

Attributes

value[R]

Public Class Methods

new(value) click to toggle source
# File lib/simple_event_sourcing/aggregate_root/id.rb, line 10
def initialize(value)
  @value = value
end

Public Instance Methods

==(other_id) click to toggle source
# File lib/simple_event_sourcing/aggregate_root/id.rb, line 18
def ==(other_id)
  self.class == other_id.class && @value == other_id.value
end
Also aliased as: eql?
eql?(other_id)
Alias for: ==
to_s() click to toggle source
# File lib/simple_event_sourcing/aggregate_root/id.rb, line 14
def to_s
  @value
end