Sha256: f05e5e2effce447f5ded6ce9eb9675c488346cd1d2edb472491eca52c5f42dd0
Contents?: true
Size: 436 Bytes
Versions: 5
Compression:
Stored size: 436 Bytes
Contents
class CDAIdentifier include Mongoid::Document field :root, type: String field :extension, type: String embedded_in :cda_identifiable, polymorphic: true 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
5 entries across 5 versions & 1 rubygems