Class: OpenEHR::RM::DataStructures::ItemStructure::Representation::Element
- Inherits:
-
Item
- Object
- Common::Archetyped::Pathable
- Common::Archetyped::Locatable
- Item
- OpenEHR::RM::DataStructures::ItemStructure::Representation::Element
- Defined in:
- lib/open_ehr/rm/data_structures/item_structure/representation.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
-
#null_flavor ⇒ Object
Returns the value of attribute null_flavor.
-
#value ⇒ Object
Returns the value of attribute value.
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
-
#initialize(args = {}) ⇒ Element
constructor
A new instance of Element.
- #is_null? ⇒ Boolean
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 = {}) ⇒ Element
Returns a new instance of Element.
19 20 21 22 23 |
# File 'lib/open_ehr/rm/data_structures/item_structure/representation.rb', line 19 def initialize(args = {}) super(args) self.value = args[:value] self.null_flavor= args[:null_flavor] end |
Instance Attribute Details
#null_flavor ⇒ Object
Returns the value of attribute null_flavor.
18 19 20 |
# File 'lib/open_ehr/rm/data_structures/item_structure/representation.rb', line 18 def null_flavor @null_flavor end |
#value ⇒ Object
Returns the value of attribute value.
17 18 19 |
# File 'lib/open_ehr/rm/data_structures/item_structure/representation.rb', line 17 def value @value end |
Instance Method Details
#is_null? ⇒ Boolean
39 40 41 |
# File 'lib/open_ehr/rm/data_structures/item_structure/representation.rb', line 39 def is_null? return @value.nil? end |