Class: IbmAppconfigurationRubySdk::DriverSocket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject (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