Sha256: 1b717c709bc1d5a280cebfa7f4f51faa33f974e9fbd7748c1f1acd57b82a2f29

Contents?: true

Size: 814 Bytes

Versions: 4

Compression:

Stored size: 814 Bytes

Contents

module Ably::Realtime
  class Channel
    # Describes the properties of the channel state.
    class ChannelProperties
      # {Ably::Realtime::Channel} this object associated with
      #
      # @return [Ably::Realtime::Channel]
      #
      attr_reader :channel

      # Starts unset when a channel is instantiated, then updated with the channelSerial from each
      # {Ably::Realtime::Channel::STATE.Attached} event that matches the channel.
      # Used as the value for {Ably::Realtime::Channel#history}.
      #
      # @spec CP2a
      #
      # @return [String]
      #
      attr_reader :attach_serial

      def initialize(channel)
        @channel = channel
      end

      # @api private
      def set_attach_serial(attach_serial)
        @attach_serial = attach_serial
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ably-rest-1.2.4 lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_properties.rb
ably-1.2.4 lib/ably/realtime/channel/channel_properties.rb
ably-rest-1.2.3 lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_properties.rb
ably-1.2.3 lib/ably/realtime/channel/channel_properties.rb