Class: HttpConnect::HttpGet

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

Overview

HttpGet 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 = {}) ⇒ HttpGet

initialize()



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

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