class Aggro::Client

Public: Makes requests against a given endpoint returning parsed responses.

Public Class Methods

new(endpoint) click to toggle source
# File lib/aggro/client.rb, line 4
def initialize(endpoint)
  @transport_client = Aggro.transport.client(endpoint)
end

Public Instance Methods

disconnect!() click to toggle source
# File lib/aggro/client.rb, line 8
def disconnect!
  @transport_client.close_socket
end
post(message) click to toggle source
# File lib/aggro/client.rb, line 12
def post(message)
  MessageParser.parse @transport_client.post message
end