Module: Agent99::HeaderManagement
- Defined in:
- lib/agent99/header_management.rb
Overview
lib/agent99/header_management.rb
Instance Method Summary collapse
- #event_uuid ⇒ Object
- #from_uuid ⇒ Object
-
#header ⇒ Object
private.
- #return_address ⇒ Object
- #timestamp ⇒ Object
- #to_uuid ⇒ Object
- #type ⇒ Object
Instance Method Details
#event_uuid ⇒ Object
12 |
# File 'lib/agent99/header_management.rb', line 12 def event_uuid = header[:event_uuid] |
#from_uuid ⇒ Object
11 |
# File 'lib/agent99/header_management.rb', line 11 def from_uuid = header[:from_uuid] |
#header ⇒ Object
private
9 |
# File 'lib/agent99/header_management.rb', line 9 def header = @payload[:header] |
#return_address ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/agent99/header_management.rb', line 16 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 |
#timestamp ⇒ Object
13 |
# File 'lib/agent99/header_management.rb', line 13 def = header[:timestamp] |
#to_uuid ⇒ Object
10 |
# File 'lib/agent99/header_management.rb', line 10 def to_uuid = header[:to_uuid] |
#type ⇒ Object
14 |
# File 'lib/agent99/header_management.rb', line 14 def type = header[:type] |