class RSwim::Message
Attributes
from[R]
payload[R]
to[R]
type[R]
Public Class Methods
new(to, from, type, payload = {})
click to toggle source
# File lib/rswim/message.rb, line 7 def initialize(to, from, type, payload = {}) @to = to @from = from @type = type @payload = payload end
Public Instance Methods
to_s()
click to toggle source
# File lib/rswim/message.rb, line 14 def to_s "message of type #{type} from #{from} to #{to} with #{payload[:updates].to_a.size} updates" end