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