Class: MCP::Client::OAuth::BoundedBody::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/mcp/client/oauth/bounded_body.rb

Overview

What the OAuth code reads from a response. The Faraday response itself is not passed on, so a later caller cannot reach the unbounded response.body by accident.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



19
20
21
# File 'lib/mcp/client/oauth/bounded_body.rb', line 19

def body
  @body
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



19
20
21
# File 'lib/mcp/client/oauth/bounded_body.rb', line 19

def status
  @status
end