Class: OpenEHR::RM::Support::Identification::LocatableRef
- Defined in:
- lib/open_ehr/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.
291 292 293 294 |
# File 'lib/open_ehr/rm/support/identification.rb', line 291 def initialize(args = {}) super(args) self.path = args[:path] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
289 290 291 |
# File 'lib/open_ehr/rm/support/identification.rb', line 289 def path @path end |
Instance Method Details
#as_uri ⇒ Object
301 302 303 |
# File 'lib/open_ehr/rm/support/identification.rb', line 301 def as_uri 'ehr://' + @id.value + '/' + @path end |