Class: ActiveCypher::Bolt::Messaging::Hello

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

Overview

The HELLO message. Because every protocol needs to start with a greeting before the disappointment.

Constant Summary collapse

SIGNATURE =
0x01

Instance Attribute Summary

Attributes inherited from Message

#fields, #signature

Instance Method Summary collapse

Methods inherited from Message

#==, inherited

Constructor Details

#initialize(metadata) ⇒ Hello

Returns a new instance of Hello.



74
75
76
77
# File 'lib/active_cypher/bolt/messaging.rb', line 74

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

Instance Method Details

#metadataObject



79
80
81
# File 'lib/active_cypher/bolt/messaging.rb', line 79

def 
  fields.first
end