Class: OpenEHR::RM::DataStructures::History::Event
- Inherits:
-
Common::Archetyped::Locatable
- Object
- Common::Archetyped::Pathable
- Common::Archetyped::Locatable
- OpenEHR::RM::DataStructures::History::Event
- Defined in:
- lib/openehr/rm/data_structures/history.rb
Direct Known Subclasses
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
-
#data ⇒ Object
Returns the value of attribute data.
-
#state ⇒ Object
Returns the value of attribute state.
-
#time ⇒ Object
Returns the value of attribute time.
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 = { }) ⇒ Event
constructor
A new instance of Event.
- #offset ⇒ Object
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 = { }) ⇒ Event
Returns a new instance of Event.
52 53 54 55 56 57 |
# File 'lib/openehr/rm/data_structures/history.rb', line 52 def initialize(args = { }) super(args) self.data = args[:data] self.time = args[:time] self.state = args[:state] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
49 50 51 |
# File 'lib/openehr/rm/data_structures/history.rb', line 49 def data @data end |
#state ⇒ Object
Returns the value of attribute state.
50 51 52 |
# File 'lib/openehr/rm/data_structures/history.rb', line 50 def state @state end |
#time ⇒ Object
Returns the value of attribute time.
49 50 51 |
# File 'lib/openehr/rm/data_structures/history.rb', line 49 def time @time end |
Instance Method Details
#offset ⇒ Object
69 70 71 |
# File 'lib/openehr/rm/data_structures/history.rb', line 69 def offset return @time.diff(@parent.origin) end |