Class: OBSWS::Identified
- Inherits:
-
Object
- Object
- OBSWS::Identified
- Defined in:
- lib/obsws/base.rb
Instance Attribute Summary collapse
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize ⇒ Identified
constructor
A new instance of Identified.
Constructor Details
#initialize ⇒ Identified
Returns a new instance of Identified.
5 6 7 |
# File 'lib/obsws/base.rb', line 5 def initialize @state = :pending end |
Instance Attribute Details
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/obsws/base.rb', line 3 def state @state end |
Instance Method Details
#error_message ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/obsws/base.rb', line 9 def case @state when :passwordless "auth enabled but no password provided" else "failed to identify client with the websocket server" end end |