Class: Ably::Realtime::Channel::ChannelProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/ably/realtime/channel/channel_properties.rb

Overview

Represents properties of a channel and its state

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel) ⇒ ChannelProperties

Returns a new instance of ChannelProperties.



14
15
16
# File 'lib/ably/realtime/channel/channel_properties.rb', line 14

def initialize(channel)
  @channel = channel
end

Instance Attribute Details

#attach_serialString (readonly)

Contains the last channelSerial received in an ATTACHED ProtocolMesage for the channel, see RTL15a

Returns:

  • (String)


12
13
14
# File 'lib/ably/realtime/channel/channel_properties.rb', line 12

def attach_serial
  @attach_serial
end

#channelAbly::Realtime::Channel (readonly)

Ably::Realtime::Channel this object associated with



7
8
9
# File 'lib/ably/realtime/channel/channel_properties.rb', line 7

def channel
  @channel
end

Instance Method Details

#set_attach_serial(attach_serial) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
# File 'lib/ably/realtime/channel/channel_properties.rb', line 19

def set_attach_serial(attach_serial)
  @attach_serial = attach_serial
end