Class: Dynflow::Coordinator::WorldRecord
- Inherits:
-
Record
- Object
- Serializable
- Record
- Dynflow::Coordinator::WorldRecord
- Defined in:
- lib/dynflow/coordinator.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Serializable
Serializable::LEGACY_TIME_FORMAT, Serializable::TIME_FORMAT
Instance Attribute Summary
Attributes inherited from Record
Instance Method Summary collapse
- #executor? ⇒ Boolean
-
#initialize(world) ⇒ WorldRecord
constructor
A new instance of WorldRecord.
- #meta ⇒ Object
Methods inherited from Record
#==, constantize, #from_hash, #hash, #id, new_from_hash, #to_hash, #to_s, #validate!
Methods inherited from Serializable
constantize, from_hash, new_from_hash, #to_hash
Constructor Details
#initialize(world) ⇒ WorldRecord
Returns a new instance of WorldRecord.
84 85 86 87 88 |
# File 'lib/dynflow/coordinator.rb', line 84 def initialize(world) super @data[:id] = world.id @data[:meta] = world. end |
Instance Method Details
#executor? ⇒ Boolean
94 95 96 |
# File 'lib/dynflow/coordinator.rb', line 94 def executor? raise NotImplementedError end |
#meta ⇒ Object
90 91 92 |
# File 'lib/dynflow/coordinator.rb', line 90 def @data[:meta] end |