lib/submodules/ably-ruby/lib/ably/rest/channel.rb in ably-rest-1.2.1 vs lib/submodules/ably-ruby/lib/ably/rest/channel.rb in ably-rest-1.2.2

- old
+ new

@@ -159,9 +159,16 @@ def set_options(channel_options) @options = Ably::Models::ChannelOptions(channel_options) end alias options= set_options + # Makes GET request for channel details (#RSL8, #RSL8a) + # + # @return [Ably::Models::ChannelDetails] + def status + Ably::Models::ChannelDetails.new(client.get(base_path).body) + end + private def base_path "/channels/#{URI.encode_www_form_component(name)}" end