Class: GreenhouseApi::Response
- Inherits:
-
Object
- Object
- GreenhouseApi::Response
- Defined in:
- lib/greenhouse_api/base_client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(headers:, body:, status:) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(headers:, body:, status:) ⇒ Response
Returns a new instance of Response.
13 14 15 16 17 |
# File 'lib/greenhouse_api/base_client.rb', line 13 def initialize(headers:, body:, status:) @headers = headers @body = body @status = status end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
11 12 13 |
# File 'lib/greenhouse_api/base_client.rb', line 11 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
11 12 13 |
# File 'lib/greenhouse_api/base_client.rb', line 11 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
11 12 13 |
# File 'lib/greenhouse_api/base_client.rb', line 11 def status @status end |