module EntityStore::EntityValue
Public Class Methods
included(klass)
click to toggle source
# File lib/entity_store/entity_value.rb, line 3 def self.included(klass) klass.class_eval do include HashSerialization include Attributes end end
Public Instance Methods
==(other)
click to toggle source
# File lib/entity_store/entity_value.rb, line 10 def ==(other) attributes.each_key do |attr| return false unless other.respond_to?(attr) && send(attr) == other.send(attr) end return true end
inspect()
click to toggle source
# File lib/entity_store/entity_value.rb, line 17 def inspect "<#{self.class.name} #{self.attributes.inspect}>" end