Class: Parliament::Response::BaseResponse
- Inherits:
-
Object
- Object
- Parliament::Response::BaseResponse
- Defined in:
- lib/parliament/response/base_response.rb
Overview
An API response built from API data.
Instance Attribute Summary collapse
-
#response ⇒ HTTPResponse
readonly
the HTTPResponse from the API.
Instance Method Summary collapse
-
#initialize(response) ⇒ BaseResponse
constructor
Creates a Parliament::BaseResponse object.
Constructor Details
#initialize(response) ⇒ BaseResponse
Creates a Parliament::BaseResponse object.
13 14 15 |
# File 'lib/parliament/response/base_response.rb', line 13 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ HTTPResponse (readonly)
the HTTPResponse from the API.
7 8 9 |
# File 'lib/parliament/response/base_response.rb', line 7 def response @response end |