Class: Ferris::RTM::WebSocketWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/ferris/rtm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#socketObject (readonly)

Returns the value of attribute socket.



15
16
17
# File 'lib/ferris/rtm.rb', line 15

def socket
  @socket
end

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