Class: RoadForest::HTTP::BaseResponse
- Inherits:
-
Object
- Object
- RoadForest::HTTP::BaseResponse
- Defined in:
- lib/roadforest/http/graph-response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #etag ⇒ Object
-
#initialize(url, response) ⇒ BaseResponse
constructor
A new instance of BaseResponse.
- #raw_body ⇒ Object
- #status ⇒ Object
Constructor Details
#initialize(url, response) ⇒ BaseResponse
Returns a new instance of BaseResponse.
6 7 8 |
# File 'lib/roadforest/http/graph-response.rb', line 6 def initialize(url, response) @url, @response = url, response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/roadforest/http/graph-response.rb', line 4 def response @response end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/roadforest/http/graph-response.rb', line 4 def url @url end |
Instance Method Details
#etag ⇒ Object
10 11 12 |
# File 'lib/roadforest/http/graph-response.rb', line 10 def etag response.etag end |
#raw_body ⇒ Object
18 19 20 |
# File 'lib/roadforest/http/graph-response.rb', line 18 def raw_body response.body end |
#status ⇒ Object
14 15 16 |
# File 'lib/roadforest/http/graph-response.rb', line 14 def status response.status end |