Class: CryptoToolchain::DiffieHellman::Messages::PeerAddress
- Defined in:
- lib/crypto_toolchain/diffie_hellman/messages.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#initial ⇒ Object
(also: #initial?)
readonly
Returns the value of attribute initial.
-
#peer ⇒ Object
readonly
Returns the value of attribute peer.
-
#pubkey ⇒ Object
Returns the value of attribute pubkey.
-
#shared_secret ⇒ Object
Returns the value of attribute shared_secret.
Instance Method Summary collapse
-
#initialize(peer:, channel:, initial: false) ⇒ PeerAddress
constructor
A new instance of PeerAddress.
Constructor Details
#initialize(peer:, channel:, initial: false) ⇒ PeerAddress
Returns a new instance of PeerAddress.
7 8 9 10 11 |
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 7 def initialize(peer: , channel: , initial: false) @peer = peer @channel = channel @initial = initial end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
12 13 14 |
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 12 def channel @channel end |
#initial ⇒ Object (readonly) Also known as: initial?
Returns the value of attribute initial.
12 13 14 |
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 12 def initial @initial end |
#peer ⇒ Object (readonly)
Returns the value of attribute peer.
12 13 14 |
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 12 def peer @peer end |
#pubkey ⇒ Object
Returns the value of attribute pubkey.
14 15 16 |
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 14 def pubkey @pubkey end |
#shared_secret ⇒ Object
Returns the value of attribute shared_secret.
14 15 16 |
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 14 def shared_secret @shared_secret end |