Class: OpenEHR::RM::Common::Archetyped::Pathable

Inherits:
Object
  • Object
show all
Defined in:
lib/open_ehr/rm/common/archetyped.rb

Direct Known Subclasses

Locatable

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = { }) ⇒ Pathable

Returns a new instance of Pathable.



19
20
21
# File 'lib/open_ehr/rm/common/archetyped.rb', line 19

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

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



17
18
19
# File 'lib/open_ehr/rm/common/archetyped.rb', line 17

def parent
  @parent
end

Instance Method Details

#item_at_path(path) ⇒ Object

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/open_ehr/rm/common/archetyped.rb', line 23

def item_at_path(path)
  raise NotImplementedError, "item_at_path must be implemented"
end

#items_at_path(path) ⇒ Object

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/open_ehr/rm/common/archetyped.rb', line 27

def items_at_path(path)
  raise NotImplementedError, "items_at_path must be implemented"
end

#path_exists?(path) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/open_ehr/rm/common/archetyped.rb', line 31

def path_exists?(path)
  raise NotImplementedError, "path_exists? must be implemented"
end

#path_of_item(item) ⇒ Object

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/open_ehr/rm/common/archetyped.rb', line 35

def path_of_item(item)
  raise NotImplementedError, "path_of_item must be implemented"
end

#path_unique?(path) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


39
40
41
# File 'lib/open_ehr/rm/common/archetyped.rb', line 39

def path_unique?(path)
  raise NotImplementedError, "path_unique? must be implemented"
end