Class: GreenhouseApi::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/greenhouse_api/base_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



11
12
13
# File 'lib/greenhouse_api/base_client.rb', line 11

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



11
12
13
# File 'lib/greenhouse_api/base_client.rb', line 11

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/greenhouse_api/base_client.rb', line 11

def status
  @status
end