class Ably::Models::ChannelDetails
Contains the details of a {Ably::Models::Rest::Channel} or {Ably::Models::Realtime::Channel} object such as its ID and {Ably::Models::ChannelStatus}.
Attributes
The attributes of ChannelDetails
@spec CHD2
The attributes of ChannelDetails
@spec CHD2
Public Class Methods
Source
# File lib/ably/models/channel_details.rb, line 35 def initialize(attrs) @attributes = IdiomaticRubyWrapper(attrs.clone) end
Initialize a new ChannelDetails
Public Instance Methods
Source
# File lib/ably/models/channel_details.rb, line 45 def channel_id attributes[:channel_id] end
The identifier of the channel
@spec CHD2a
@return [String]
Source
# File lib/ably/models/channel_details.rb, line 55 def name attributes[:name] end
The identifier of the channel
@spec CHD2a
@return [String]
Source
# File lib/ably/models/channel_details.rb, line 65 def status Ably::Models::ChannelStatus(attributes[:status]) end
A {Ably::Models::ChannelStatus} object.
@spec CHD2b
@return [Ably::Models::ChannelStatus, nil]