Class: MEE::RFC5424::SocketTransport
- Inherits:
-
Object
- Object
- MEE::RFC5424::SocketTransport
- Defined in:
- lib/mee/rfc5424.rb
Instance Attribute Summary collapse
-
#socket ⇒ Object
Returns the value of attribute socket.
Instance Method Summary collapse
-
#initialize(socket) ⇒ SocketTransport
constructor
A new instance of SocketTransport.
- #send_frame(frame) ⇒ Object
Constructor Details
#initialize(socket) ⇒ SocketTransport
Returns a new instance of SocketTransport.
63 64 65 |
# File 'lib/mee/rfc5424.rb', line 63 def initialize( socket ) self.socket = socket end |
Instance Attribute Details
#socket ⇒ Object
Returns the value of attribute socket.
62 63 64 |
# File 'lib/mee/rfc5424.rb', line 62 def socket @socket end |
Instance Method Details
#send_frame(frame) ⇒ Object
67 68 69 |
# File 'lib/mee/rfc5424.rb', line 67 def send_frame( frame ) socket.write( frame ) end |