Class: Parliament::Response::BaseResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/parliament/response/base_response.rb

Overview

An API response built from API data.

Since:

  • 0.7.5.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ BaseResponse

Creates a Parliament::BaseResponse object.

Since:

  • 0.7.5.



13
14
15
# File 'lib/parliament/response/base_response.rb', line 13

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseHTTPResponse (readonly)

the HTTPResponse from the API.

Since:

  • 0.7.5.



7
8
9
# File 'lib/parliament/response/base_response.rb', line 7

def response
  @response
end