class DCell::Message::Relay

Relay a message to the given recipient

Attributes

message[R]
recipient[R]

Public Class Methods

new(recipient, message) click to toggle source
Calls superclass method DCell::Message::new
# File lib/dcell/messages.rb, line 55
def initialize(recipient, message)
  super()
  @recipient, @message = recipient, message
end

Public Instance Methods

dispatch() click to toggle source
# File lib/dcell/messages.rb, line 60
def dispatch
  @recipient << @message
end