Class: OpenEHR::RM::DataStructures::ItemStructure::ItemSingle
- Inherits:
-
ItemStructure
- Object
- Common::Archetyped::Pathable
- Common::Archetyped::Locatable
- DataStructure
- ItemStructure
- OpenEHR::RM::DataStructures::ItemStructure::ItemSingle
- Defined in:
- lib/open_ehr/rm/data_structures/item_structure.rb
Constant Summary
Constants included from Common::Archetyped::LocaterConstants
Common::Archetyped::LocaterConstants::CONTENT_PATH_SEPARATOR, Common::Archetyped::LocaterConstants::CURRENT_TRANSACTION_ID, Common::Archetyped::LocaterConstants::FRAGMENT_SEPARATOR, Common::Archetyped::LocaterConstants::MULTIPART_ID_DELIMITER, Common::Archetyped::LocaterConstants::ORGANIZER_PATH_SEPARATOR
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
Attributes inherited from Common::Archetyped::Locatable
#archetype_details, #archetype_node_id, #feeder_audit, #links, #name, #uid
Attributes inherited from Common::Archetyped::Pathable
Instance Method Summary collapse
- #as_hierarchy ⇒ Object
-
#initialize(args = {}) ⇒ ItemSingle
constructor
A new instance of ItemSingle.
Methods inherited from Common::Archetyped::Locatable
Methods inherited from Common::Archetyped::Pathable
#item_at_path, #items_at_path, #path_exists?, #path_of_item, #path_unique?
Constructor Details
#initialize(args = {}) ⇒ ItemSingle
Returns a new instance of ItemSingle.
22 23 24 25 |
# File 'lib/open_ehr/rm/data_structures/item_structure.rb', line 22 def initialize(args = {}) super(args) self.item = args[:item] end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
20 21 22 |
# File 'lib/open_ehr/rm/data_structures/item_structure.rb', line 20 def item @item end |
Instance Method Details
#as_hierarchy ⇒ Object
27 28 29 |
# File 'lib/open_ehr/rm/data_structures/item_structure.rb', line 27 def as_hierarchy return @item end |