Class: OBS::WebSocket::Protocol::Type
- Inherits:
-
Object
- Object
- OBS::WebSocket::Protocol::Type
- Defined in:
- lib/obs/websocket.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(**kwargs, &block) ⇒ Type
constructor
A new instance of Type.
Constructor Details
#initialize(**kwargs, &block) ⇒ Type
Returns a new instance of Type.
206 207 208 209 210 211 |
# File 'lib/obs/websocket.rb', line 206 def initialize(**kwargs, &block) kwargs.each do |k, v| instance_variable_set(:"@#{k}", v) end instance_eval(&block) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
213 214 215 |
# File 'lib/obs/websocket.rb', line 213 def name @name end |