Class: SlackRTMApi::ClientWrapper
- Inherits:
-
Object
- Object
- SlackRTMApi::ClientWrapper
- Defined in:
- lib/slack-rtm-api/client_wrapper.rb
Instance Attribute Summary collapse
-
#socket ⇒ Object
Returns the value of attribute socket.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, socket) ⇒ ClientWrapper
constructor
A new instance of ClientWrapper.
- #write(*args) ⇒ Object
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
#socket ⇒ Object
Returns the value of attribute socket.
3 4 5 |
# File 'lib/slack-rtm-api/client_wrapper.rb', line 3 def socket @socket end |
#url ⇒ Object
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 |