Class: CDAIdentifier
- Inherits:
-
Object
- Object
- CDAIdentifier
- Includes:
- Mongoid::Document
- Defined in:
- lib/health-data-standards/models/cda_identifier.rb
Instance Method Summary collapse
Instance Method Details
#==(comparison_object) ⇒ Object
8 9 10 11 12 |
# File 'lib/health-data-standards/models/cda_identifier.rb', line 8 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 |
#hash ⇒ Object
14 15 16 |
# File 'lib/health-data-standards/models/cda_identifier.rb', line 14 def hash "#{root}#{extension}".hash end |