Class: HttpConnect::HttpPost

Inherits:
HttpRequest show all
Defined in:
lib/http_connect/http_post.rb

Overview

HttpPost class

Instance Attribute Summary

Attributes inherited from HttpRequest

#accept, #content, #content_type, #http_method, #path

Instance Method Summary collapse

Constructor Details

#initialize(path, content_type = 'application/json', accept = 'application/json', content = {}) ⇒ HttpPost

initialize()



7
8
9
10
# File 'lib/http_connect/http_post.rb', line 7

def initialize(path, content_type = 'application/json',
               accept = 'application/json', content = {})
  super(path, 'POST', content_type, accept, content)
end