Class: Ferris::RTM::WebSocketWriter
- Inherits:
-
Object
- Object
- Ferris::RTM::WebSocketWriter
- Defined in:
- lib/ferris/rtm.rb
Instance Attribute Summary collapse
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, socket) ⇒ WebSocketWriter
constructor
A new instance of WebSocketWriter.
- #write(*args) ⇒ Object
Constructor Details
#initialize(url, socket) ⇒ WebSocketWriter
Returns a new instance of WebSocketWriter.
17 18 19 20 |
# File 'lib/ferris/rtm.rb', line 17 def initialize url, socket @url = url @socket = socket end |
Instance Attribute Details
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
15 16 17 |
# File 'lib/ferris/rtm.rb', line 15 def socket @socket end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
15 16 17 |
# File 'lib/ferris/rtm.rb', line 15 def url @url end |
Instance Method Details
#write(*args) ⇒ Object
22 23 24 |
# File 'lib/ferris/rtm.rb', line 22 def write *args socket.write *args end |