Class: ActiveCypher::Bolt::Messaging::Route

Inherits:
Message
  • Object
show all
Defined in:
lib/active_cypher/bolt/messaging.rb

Overview

The ROUTE message. For when you want to pretend you have control over routing.

Constant Summary collapse

SIGNATURE =
0x66

Instance Attribute Summary

Attributes inherited from Message

#fields, #signature

Instance Method Summary collapse

Methods inherited from Message

#==, inherited

Constructor Details

#initialize(metadata) ⇒ Route

Returns a new instance of Route.



201
202
203
204
# File 'lib/active_cypher/bolt/messaging.rb', line 201

def initialize()
  meta = Messaging.normalize_map()
  super(SIGNATURE, [meta])
end

Instance Method Details

#metadataObject



206
207
208
# File 'lib/active_cypher/bolt/messaging.rb', line 206

def 
  fields.first
end