Class: ActiveCypher::Bolt::Messaging::MetadataMessage
- 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.
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(metadata) ⇒ MetadataMessage
constructor
A new instance of MetadataMessage.
- #metadata ⇒ Object
Methods inherited from Message
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() = Messaging.normalize_map() super(self.class::SIGNATURE, []) end |
Instance Method Details
#metadata ⇒ Object
78 79 80 |
# File 'lib/active_cypher/bolt/messaging.rb', line 78 def fields.first end |