Class: HTTPalooza::Players::UnirestPlayer

Inherits:
Base
  • Object
show all
Defined in:
lib/httpalooza/players/unirest.rb

Instance Attribute Summary

Attributes inherited from Base

#request

Instance Method Summary collapse

Methods inherited from Base

execute!, #initialize, introducing!, #name

Constructor Details

This class inherits a constructor from HTTPalooza::Players::Base

Instance Method Details

#responseObject



6
7
8
9
# File 'lib/httpalooza/players/unirest.rb', line 6

def response
  response = Unirest::HttpClient.request(request.method, request.url.to_s, request.params, nil)
  Response.new(response.code, response.body)
end