Class: OpenEHR::RM::Support::Identification::LocatableRef
- Defined in:
- lib/openehr/rm/support/identification.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Attributes inherited from ObjectRef
Instance Method Summary collapse
- #as_uri ⇒ Object
-
#initialize(args = {}) ⇒ LocatableRef
constructor
A new instance of LocatableRef.
Constructor Details
#initialize(args = {}) ⇒ LocatableRef
Returns a new instance of LocatableRef.
296 297 298 299 |
# File 'lib/openehr/rm/support/identification.rb', line 296 def initialize(args = {}) super(args) self.path = args[:path] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
294 295 296 |
# File 'lib/openehr/rm/support/identification.rb', line 294 def path @path end |
Instance Method Details
#as_uri ⇒ Object
306 307 308 309 310 |
# File 'lib/openehr/rm/support/identification.rb', line 306 def as_uri uri = 'ehr://' + @id.value uri += '/' + @path unless @path.nil? uri end |