lib/ably/models/channel_state_change.rb in ably-0.8.5 vs lib/ably/models/channel_state_change.rb in ably-0.8.6
- old
+ new
@@ -1,13 +1,13 @@
module Ably::Models
# ChannelStateChange is a class that is emitted by the {Ably::Realtime::Channel} object
# when a state change occurs
#
# @!attribute [r] current
- # @return [Connection::STATE] Current connection state
+ # @return [Connection::STATE] Current channel state
# @!attribute [r] previous
- # @return [Connection::STATE] Previous connection state
+ # @return [Connection::STATE] Previous channel state
# @!attribute [r] reason
# @return [Ably::Models::ErrorInfo] Object describing the reason for a state change when not initiated by the consumer of the client library
#
class ChannelStateChange
include Ably::Modules::ModelCommon
@@ -18,10 +18,9 @@
end
@hash_object = {
current: hash_object.fetch(:current),
previous: hash_object.fetch(:previous),
- retry_in: hash_object[:retry_in],
reason: hash_object[:reason],
protocol_message: hash_object[:protocol_message]
}
rescue KeyError => e
raise ArgumentError, e