Class: ActiveCypher::Bolt::Messaging::Logon

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

Overview

The LOGON message. Because authentication is just another chance to be rejected.

Constant Summary collapse

SIGNATURE =
0x6A

Instance Attribute Summary

Attributes inherited from Message

#fields, #signature

Instance Method Summary collapse

Methods inherited from Message

#==, inherited

Constructor Details

#initialize(metadata) ⇒ Logon

Returns a new instance of Logon.



215
216
217
218
# File 'lib/active_cypher/bolt/messaging.rb', line 215

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

Instance Method Details

#metadataObject



220
221
222
# File 'lib/active_cypher/bolt/messaging.rb', line 220

def 
  fields.first
end