Sha256: f9927a5bcacb1297c6d9fa676a1ad42cfda78d39c7bb2e77bdf9653a2bc25a7c
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 Bytes
Contents
# lib/agent99/header_management.rb module Agent99::HeaderManagement ################################################ # private def header = @payload[:header] def to_uuid = header[:to_uuid] def from_uuid = header[:from_uuid] def event_uuid = header[:event_uuid] def timestamp = header[:timestamp] def type = header[:type] def return_address return_address = payload[:header].dup return_address.merge( to_uuid: return_address[:from_uuid], from_uuid: return_address[:to_uuid], timestamp: Agent99::Timestamp.new.to_i, type: 'response' ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
agent99-0.0.4 | lib/agent99/header_management.rb |
agent99-0.0.3 | lib/agent99/header_management.rb |
agent99-0.0.2 | lib/agent99/header_management.rb |