Class: HttpClient
- Inherits:
-
Object
- Object
- HttpClient
- Defined in:
- lib/http_client.rb
Direct Known Subclasses
Instance Method Summary collapse
- #get(url, query, headers) ⇒ Object
- #post(url, query, headers, body) ⇒ Object
- #put(url, query, headers, body) ⇒ Object
- #response ⇒ Object
Instance Method Details
#get(url, query, headers) ⇒ Object
9 10 11 |
# File 'lib/http_client.rb', line 9 def get(url, query, headers) raise NotImplementedError.new("You must implement get method.") end |
#post(url, query, headers, body) ⇒ Object
13 14 15 |
# File 'lib/http_client.rb', line 13 def post(url, query, headers, body) raise NotImplementedError.new("You must implement post method.") end |
#put(url, query, headers, body) ⇒ Object
17 18 19 |
# File 'lib/http_client.rb', line 17 def put(url, query, headers, body) raise NotImplementedError.new("You must implement put method.") end |
#response ⇒ Object
5 6 7 |
# File 'lib/http_client.rb', line 5 def response raise NotImplementedError.new("You must implement response method.") end |