Sha256: 2c0a1f6b25f6de158003ac50dbe0e49687fd5688fa803eb25a85d00a1a16c184
Contents?: true
Size: 406 Bytes
Versions: 17
Compression:
Stored size: 406 Bytes
Contents
class CDAIdentifier include Mongoid::Document field :root, type: String field :extension, type: String embedded_in :entry def ==(comparison_object) if comparison_object.respond_to?(:root) && comparison_object.respond_to?(:extension) self.root == comparison_object.root && self.extension == comparison_object.extension end end def hash "#{root}#{extension}".hash end end
Version data entries
17 entries across 17 versions & 1 rubygems