Sha256: 4757a6c3af0b5779f459ac0e502855005dd709991f90999393190877c3f1ecaa
Contents?: true
Size: 358 Bytes
Versions: 4
Compression:
Stored size: 358 Bytes
Contents
module PipeRpc class Hub::Socket class Outgoing def initialize(object) @object = object end def to_h @hash ||= @object.to_h end def to_payload @payload ||= JSON.dump(to_h) end def trigger(callbacks) callbacks.each{ |callback| callback.call(to_h) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems