Class: Ably::Realtime::Channel::ChannelStateMachine Private

Inherits:
Object
  • Object
show all
Includes:
Modules::StateMachine
Defined in:
lib/ably/realtime/channel/channel_state_machine.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Internal class to manage channel state for Ably::Realtime::Channel

Class Method Summary collapse

Methods included from Modules::StateMachine

#exception_for_state_change_to, included, #previous_state, #previous_transition, #transition_state

Class Method Details

.nil_unless_error(error_object) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



69
70
71
# File 'lib/ably/realtime/channel/channel_state_machine.rb', line 69

def self.nil_unless_error(error_object)
  error_object if is_error_type?(error_object)
end