Class: Ably::Realtime::Channel::ChannelProperties
- Inherits:
-
Object
- Object
- Ably::Realtime::Channel::ChannelProperties
- Defined in:
- lib/ably/realtime/channel/channel_properties.rb
Overview
Represents properties of a channel and its state
Instance Attribute Summary collapse
-
#attach_serial ⇒ String
readonly
Contains the last channelSerial received in an ATTACHED ProtocolMesage for the channel, see RTL15a.
-
#channel ⇒ Ably::Realtime::Channel
readonly
Ably::Realtime::Channel this object associated with.
Instance Method Summary collapse
-
#initialize(channel) ⇒ ChannelProperties
constructor
A new instance of ChannelProperties.
- #set_attach_serial(attach_serial) ⇒ Object private
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_serial ⇒ String (readonly)
Contains the last channelSerial received in an ATTACHED ProtocolMesage for the channel, see RTL15a
12 13 14 |
# File 'lib/ably/realtime/channel/channel_properties.rb', line 12 def attach_serial @attach_serial end |
#channel ⇒ Ably::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 |