Class: ActiveCypher::Bolt::Messaging::MetadataMessage

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

Overview

Base for messages whose single field is a normalized metadata map. Subclasses only need to define their SIGNATURE.

Direct Known Subclasses

Discard, Failure, Hello, Logon, Pull, Route, Success, Telemetry

Instance Attribute Summary

Attributes inherited from Message

#fields, #signature

Instance Method Summary collapse

Methods inherited from Message

#==, inherited

Constructor Details

#initialize(metadata) ⇒ MetadataMessage

Returns a new instance of MetadataMessage.



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

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

Instance Method Details

#metadataObject



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

def 
  fields.first
end