Class: ActiveCypher::Bolt::Messaging::Failure

Inherits:
Message
  • Object
show all
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

#fields, #signature

Instance Method Summary collapse

Methods inherited from Message

#==, inherited

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()
  meta = Messaging.normalize_map()
  super(SIGNATURE, [meta])
end

Instance Method Details

#codeObject



297
298
299
# File 'lib/active_cypher/bolt/messaging.rb', line 297

def code
  ['code']
end

#messageObject



301
302
303
# File 'lib/active_cypher/bolt/messaging.rb', line 301

def message
  ['message']
end

#metadataObject



293
294
295
# File 'lib/active_cypher/bolt/messaging.rb', line 293

def 
  fields.first
end