class Channel

The Channel class is used to represent a channel in for a GRIP proxy and tracks the previous ID of the last message.

Attributes

name[RW]
prev_id[RW]

Public Class Methods

new(name, prev_id=nil) click to toggle source

Initialize with the channel name and an optional previous ID.

# File lib/channel.rb, line 15
def initialize(name, prev_id=nil)
  @name = name
  @prev_id = prev_id
end