Class: SlackRTMApi::ClientWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/slack-rtm-api/client_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, socket) ⇒ ClientWrapper

Returns a new instance of ClientWrapper.



5
6
7
8
# File 'lib/slack-rtm-api/client_wrapper.rb', line 5

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

Instance Attribute Details

#socketObject

Returns the value of attribute socket.



3
4
5
# File 'lib/slack-rtm-api/client_wrapper.rb', line 3

def socket
  @socket
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/slack-rtm-api/client_wrapper.rb', line 3

def url
  @url
end

Instance Method Details

#write(*args) ⇒ Object



10
11
12
# File 'lib/slack-rtm-api/client_wrapper.rb', line 10

def write(*args)
  self.socket.write(*args)
end