class Ably::Realtime::Channel::ChannelStateMachine
Internal class to manage channel state for {Ably::Realtime::Channel}
@api private
Public Class Methods
error_from_state_change(current_transition)
click to toggle source
# File lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_state_machine.rb, line 85 def self.error_from_state_change(current_transition) # ChannelStateChange object is always passed in current_transition metadata object connection_state_change = current_transition.metadata # Reason attribute contains errors err = connection_state_change && connection_state_change.reason err if is_error_type?(err) end
Private Instance Methods
channel()
click to toggle source
# File lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_state_machine.rb, line 94 def channel object end
logger()
click to toggle source
Logged needs to be defined as it is used by {Ably::Modules::StateMachine}
# File lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_state_machine.rb, line 99 def logger channel.logger end