class RubyEventStore::Outbox::FetchSpecification

Constants

BIG_VALUE

Attributes

message_format[R]
split_key[R]

Public Class Methods

new(message_format, split_key) click to toggle source
# File lib/ruby_event_store/outbox/fetch_specification.rb, line 4
def initialize(message_format, split_key)
  @message_format = message_format
  @split_key = split_key
  freeze
end

Public Instance Methods

==(other) click to toggle source
# File lib/ruby_event_store/outbox/fetch_specification.rb, line 12
def ==(other)
  other.instance_of?(self.class) &&
    other.message_format.eql?(message_format) &&
    other.split_key.eql?(split_key)
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/ruby_event_store/outbox/fetch_specification.rb, line 20
def hash
  [
    self.class,
    message_format,
    split_key,
  ].hash ^ BIG_VALUE
end