Class: OBSWS::Driver::Socket
- Inherits:
-
Object
- Object
- OBSWS::Driver::Socket
- Defined in:
- lib/obsws/driver.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, socket) ⇒ Socket
constructor
A new instance of Socket.
- #write(s) ⇒ Object
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
#url ⇒ Object (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 |