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
attributes[R]
The attributes of ChannelDetails
@spec CHD2
to_h[R]
The attributes of ChannelDetails
@spec CHD2
Public Class Methods
new(attrs)
click to toggle source
Initialize a new ChannelDetails
# File lib/submodules/ably-ruby/lib/ably/models/channel_details.rb, line 35 def initialize(attrs) @attributes = IdiomaticRubyWrapper(attrs.clone) end
Public Instance Methods
channel_id()
click to toggle source
The identifier of the channel
@spec CHD2a
@return [String]
# File lib/submodules/ably-ruby/lib/ably/models/channel_details.rb, line 45 def channel_id attributes[:channel_id] end
name()
click to toggle source
The identifier of the channel
@spec CHD2a
@return [String]
# File lib/submodules/ably-ruby/lib/ably/models/channel_details.rb, line 55 def name attributes[:name] end
status()
click to toggle source
A {Ably::Models::ChannelStatus} object.
@spec CHD2b
@return [Ably::Models::ChannelStatus, nil]
# File lib/submodules/ably-ruby/lib/ably/models/channel_details.rb, line 65 def status Ably::Models::ChannelStatus(attributes[:status]) end