Module: Dynflow::Dispatcher::Event

Defined in:
lib/dynflow/dispatcher.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.product_from_hash(hash) ⇒ Object



68
69
70
# File 'lib/dynflow/dispatcher.rb', line 68

def self.product_from_hash(hash)
  super(hash.merge 'event' => Marshal.load(Base64.strict_decode64(hash.fetch('event'))))
end

Instance Method Details

#to_hashObject



64
65
66
# File 'lib/dynflow/dispatcher.rb', line 64

def to_hash
  super.update event: Base64.strict_encode64(Marshal.dump(event))
end