Class: ActiveCypher::Bolt::Messaging::Discard
- Defined in:
- lib/active_cypher/bolt/messaging.rb
Overview
The DISCARD message. For when you want to throw away results, or your hopes.
Constant Summary collapse
- SIGNATURE =
0x2F
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(metadata) ⇒ Discard
constructor
metadata: { n: <N>, qid: <QID> }, where n = -1 means all.
- #metadata ⇒ Object
- #n ⇒ Object
- #qid ⇒ Object
Methods inherited from Message
Constructor Details
#initialize(metadata) ⇒ Discard
metadata: { n: <N>, qid: <QID> }, where n = -1 means all
173 174 175 176 |
# File 'lib/active_cypher/bolt/messaging.rb', line 173 def initialize() = Messaging.normalize_map() super(SIGNATURE, []) end |
Instance Method Details
#metadata ⇒ Object
178 |
# File 'lib/active_cypher/bolt/messaging.rb', line 178 def = fields.first |
#n ⇒ Object
179 |
# File 'lib/active_cypher/bolt/messaging.rb', line 179 def n = [:n] || ['n'] |
#qid ⇒ Object
180 |
# File 'lib/active_cypher/bolt/messaging.rb', line 180 def qid = [:qid] || ['qid'] |