class Store::Ref

Attributes

entity_type[R]
reference[R]

Public Class Methods

new(entity_type, reference) click to toggle source
# File lib/store/ref.rb, line 5
def initialize(entity_type, reference)
  @entity_type = entity_type
  @reference = reference
end

Public Instance Methods

==(other) click to toggle source
# File lib/store/ref.rb, line 10
def ==(other)
  other.respond_to?(:entity_type) &&
    other.respond_to?(:reference) &&
    self.entity_type == other.entity_type &&
    self.reference == other.reference
end