Class: Coarnotify::Http::HttpResponse
- Inherits:
-
Object
- Object
- Coarnotify::Http::HttpResponse
- Defined in:
- lib/coarnotify/http.rb
Overview
Interface for the HTTP response object
This defines the methods which need to be implemented in order for the client to fully operate
Direct Known Subclasses
Instance Method Summary collapse
-
#header(header_name) ⇒ String
Get the value of a header from the response.
-
#status_code ⇒ Integer
Get the status code of the response.
Instance Method Details
#header(header_name) ⇒ String
Get the value of a header from the response
49 50 51 |
# File 'lib/coarnotify/http.rb', line 49 def header(header_name) raise NotImplementedError end |
#status_code ⇒ Integer
Get the status code of the response
56 57 58 |
# File 'lib/coarnotify/http.rb', line 56 def status_code raise NotImplementedError end |