Class: ActiveCypher::Bolt::Messaging::Failure
- Defined in:
- lib/active_cypher/bolt/messaging.rb
Overview
The FAILURE message. The most honest message in the protocol.
Constant Summary collapse
- SIGNATURE =
0x7F
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(metadata) ⇒ Failure
constructor
A new instance of Failure.
- #message ⇒ Object
- #metadata ⇒ Object
Methods inherited from Message
Constructor Details
#initialize(metadata) ⇒ Failure
Returns a new instance of Failure.
288 289 290 291 |
# File 'lib/active_cypher/bolt/messaging.rb', line 288 def initialize() = Messaging.normalize_map() super(SIGNATURE, []) end |
Instance Method Details
#code ⇒ Object
297 298 299 |
# File 'lib/active_cypher/bolt/messaging.rb', line 297 def code ['code'] end |
#message ⇒ Object
301 302 303 |
# File 'lib/active_cypher/bolt/messaging.rb', line 301 def ['message'] end |
#metadata ⇒ Object
293 294 295 |
# File 'lib/active_cypher/bolt/messaging.rb', line 293 def fields.first end |