Class: Chordate::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/chordate-ruby/http.rb

Class Method Summary collapse

Class Method Details

.post(path, body = {}) ⇒ Object



4
5
6
# File 'lib/chordate-ruby/http.rb', line 4

def post(path, body = {})
  Typhoeus.post(url_for(path), :body => body.merge(:token => Chordate.config.token))
end