Class: OBSWS::Driver::Socket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, socket) ⇒ Socket

Returns a new instance of Socket.



6
7
8
9
# File 'lib/obsws/driver.rb', line 6

def initialize(url, socket)
  @url = url
  @socket = socket
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/obsws/driver.rb', line 4

def url
  @url
end

Instance Method Details

#write(s) ⇒ Object



11
12
13
# File 'lib/obsws/driver.rb', line 11

def write(s)
  @socket.write(s)
end