class Ably::Models::ChannelStatus
Contains the status of a {Ably::Models::Rest::Channel} or {Ably::Models::Realtime::Channel} object such as whether it is active and its {Ably::Models::ChannelOccupancy}.
@spec CHS1
Attributes
The attributes of ChannelStatus
@spec CHS2
The attributes of ChannelStatus
@spec CHS2
Public Class Methods
Source
# File lib/ably/models/channel_status.rb, line 37 def initialize(attrs) @attributes = IdiomaticRubyWrapper(attrs.clone) end
Initialize a new ChannelStatus
Public Instance Methods
Source
# File lib/ably/models/channel_status.rb, line 47 def is_active attributes[:isActive] end
If true, the channel is active, otherwise false.
@spec CHS2a
@return [Boolean]
Also aliased as: active?, is_active?
Source
# File lib/ably/models/channel_status.rb, line 59 def occupancy Ably::Models::ChannelOccupancy(attributes[:occupancy]) end
A {Ably::Models::ChannelOccupancy} object.
@spec CHS2b
@return [Ably::Models::ChannelOccupancy, nil]