Class: Headless::APIClient::APIResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/headless/api_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#responseObject

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



15
16
17
# File 'lib/headless/api_client.rb', line 15

def response
  @response
end

Instance Method Details

#contentObject



17
18
19
# File 'lib/headless/api_client.rb', line 17

def content
  parsed_response["content"]
end