class CryptoToolchain::DiffieHellman::ReceivedMessage

Attributes

contents[R]
from[R]

Public Class Methods

new(from: , contents: ) click to toggle source
# File lib/crypto_toolchain/diffie_hellman/received_message.rb, line 4
def initialize(from: , contents: )
  @from = from
  @contents = contents
end

Public Instance Methods

==(other) click to toggle source
# File lib/crypto_toolchain/diffie_hellman/received_message.rb, line 9
def ==(other)
  unless other.is_a?(CryptoToolchain::DiffieHellman::ReceivedMessage)
    raise ArgumentError.new("Cannot coerce #{other.clas} to ReceivedMessage")
  end
end