Class: OpenEHR::RM::Support::Identification::LocatableRef

Inherits:
ObjectRef
  • Object
show all
Defined in:
lib/open_ehr/rm/support/identification.rb

Instance Attribute Summary collapse

Attributes inherited from ObjectRef

#id, #namespace, #type

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ LocatableRef

Returns a new instance of LocatableRef.



295
296
297
298
# File 'lib/open_ehr/rm/support/identification.rb', line 295

def initialize(args = {})
  super(args)
  self.path = args[:path]
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



293
294
295
# File 'lib/open_ehr/rm/support/identification.rb', line 293

def path
  @path
end

Instance Method Details

#as_uriObject



305
306
307
# File 'lib/open_ehr/rm/support/identification.rb', line 305

def as_uri
  'ehr://' + @id.value + '/' + @path
end