Class: IbmAppconfigurationRubySdk::DriverSocket
- Inherits:
-
Object
- Object
- IbmAppconfigurationRubySdk::DriverSocket
- Defined in:
- lib/ibm_appconfiguration_ruby_sdk/websocket/driver_socket.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(tcp_socket, url) ⇒ DriverSocket
constructor
A new instance of DriverSocket.
- #write(data) ⇒ Object
Constructor Details
#initialize(tcp_socket, url) ⇒ DriverSocket
Returns a new instance of DriverSocket.
21 22 23 24 |
# File 'lib/ibm_appconfiguration_ruby_sdk/websocket/driver_socket.rb', line 21 def initialize(tcp_socket, url) @tcp_socket = tcp_socket @url = url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
19 20 21 |
# File 'lib/ibm_appconfiguration_ruby_sdk/websocket/driver_socket.rb', line 19 def url @url end |
Instance Method Details
#write(data) ⇒ Object
26 27 28 |
# File 'lib/ibm_appconfiguration_ruby_sdk/websocket/driver_socket.rb', line 26 def write(data) @tcp_socket.write(data) end |