Class: OBSWS::Identified

Inherits:
Object
  • Object
show all
Defined in:
lib/obsws/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIdentified

Returns a new instance of Identified.



5
6
7
# File 'lib/obsws/base.rb', line 5

def initialize
  @state = :pending
end

Instance Attribute Details

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/obsws/base.rb', line 3

def state
  @state
end

Instance Method Details

#error_messageObject



9
10
11
12
13
14
15
16
# File 'lib/obsws/base.rb', line 9

def error_message
  case @state
  when :passwordless
    "auth enabled but no password provided"
  else
    "failed to identify client with the websocket server"
  end
end