Class: HTTPalooza::Players::HTTPartyPlayer

Inherits:
Base
  • Object
show all
Defined in:
lib/httpalooza/players/http_party.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
10
# File 'lib/httpalooza/players/http_party.rb', line 6

def response
  response = HTTParty.send(request.method, request.url, :body => request.payload)

  Response.new(response.response_code, response.body)
end