Class: Aggro::Client
- Inherits:
-
Object
- Object
- Aggro::Client
- Defined in:
- lib/aggro/client.rb
Overview
Public: Makes requests against a given endpoint returning parsed responses.
Instance Method Summary collapse
- #disconnect! ⇒ Object
-
#initialize(endpoint) ⇒ Client
constructor
A new instance of Client.
- #post(message) ⇒ Object
Constructor Details
Instance Method Details
#disconnect! ⇒ Object
8 9 10 |
# File 'lib/aggro/client.rb', line 8 def disconnect! @transport_client.close_socket end |
#post(message) ⇒ Object
12 13 14 |
# File 'lib/aggro/client.rb', line 12 def post() MessageParser.parse @transport_client.post end |