Class: Dynflow::Coordinator::WorldRecord

Inherits:
Record show all
Defined in:
lib/dynflow/coordinator.rb

Direct Known Subclasses

ClientWorld, ExecutorWorld

Constant Summary

Constants inherited from Serializable

Serializable::LEGACY_TIME_FORMAT, Serializable::TIME_FORMAT

Instance Attribute Summary

Attributes inherited from Record

#data

Instance Method Summary collapse

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.meta
end

Instance Method Details

#executor?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


94
95
96
# File 'lib/dynflow/coordinator.rb', line 94

def executor?
  raise NotImplementedError
end

#metaObject



90
91
92
# File 'lib/dynflow/coordinator.rb', line 90

def meta
  @data[:meta]
end