Class: ActiveCypher::Bolt::Messaging::Success

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

Overview

The SUCCESS message. The rarest of all Bolt messages.

Constant Summary collapse

SIGNATURE =
0x70

Instance Attribute Summary

Attributes inherited from Message

#fields, #signature

Instance Method Summary collapse

Methods inherited from Message

#==, inherited

Constructor Details

#initialize(metadata) ⇒ Success

Returns a new instance of Success.



252
253
254
255
# File 'lib/active_cypher/bolt/messaging.rb', line 252

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

Instance Method Details

#metadataObject



257
258
259
# File 'lib/active_cypher/bolt/messaging.rb', line 257

def 
  fields.first
end