Class: Lightning::Onion::ErrorPacket

Inherits:
Object
  • Object
show all
Defined in:
lib/lightning/onion/error_packet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(onion_node, failure_message) ⇒ ErrorPacket

Returns a new instance of ErrorPacket.



7
8
9
10
# File 'lib/lightning/onion/error_packet.rb', line 7

def initialize(onion_node, failure_message)
  @onion_node = onion_node
  @failure_message = failure_message
end

Instance Attribute Details

#failure_messageObject

Returns the value of attribute failure_message.



6
7
8
# File 'lib/lightning/onion/error_packet.rb', line 6

def failure_message
  @failure_message
end

#onion_nodeObject

Returns the value of attribute onion_node.



6
7
8
# File 'lib/lightning/onion/error_packet.rb', line 6

def onion_node
  @onion_node
end