Class: OBS::WebSocket::Protocol::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/obs/websocket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



213
214
215
# File 'lib/obs/websocket.rb', line 213

def name
  @name
end