Class: Geoloqi::Response
- Inherits:
-
Object
- Object
- Geoloqi::Response
- Defined in:
- lib/geoloqi/response.rb
Instance Attribute Summary collapse
-
#body ⇒ String
readonly
The body of the response.
-
#headers ⇒ Hash
readonly
The HTTP Headers of the response.
-
#status ⇒ Fixnum
readonly
The HTTP status code of the response.
Instance Method Summary collapse
-
#initialize(status, headers, body) ⇒ Response
constructor
Instantiate a response object.
Constructor Details
#initialize(status, headers, body) ⇒ Response
Instantiate a response object.
21 22 23 24 25 |
# File 'lib/geoloqi/response.rb', line 21 def initialize(status, headers, body) @status = status @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ String (readonly)
The body of the response
13 14 15 |
# File 'lib/geoloqi/response.rb', line 13 def body @body end |
#headers ⇒ Hash (readonly)
The HTTP Headers of the response
9 10 11 |
# File 'lib/geoloqi/response.rb', line 9 def headers @headers end |
#status ⇒ Fixnum (readonly)
The HTTP status code of the response
5 6 7 |
# File 'lib/geoloqi/response.rb', line 5 def status @status end |