Class: BSV::Auth::AuthResponse
- Inherits:
-
Object
- Object
- BSV::Auth::AuthResponse
- Defined in:
- lib/bsv/auth/auth_fetch.rb
Overview
Immutable value object representing an authenticated HTTP response.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#identity_key ⇒ Object
readonly
Returns the value of attribute identity_key.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status:, headers:, body:, identity_key:) ⇒ AuthResponse
constructor
A new instance of AuthResponse.
Constructor Details
#initialize(status:, headers:, body:, identity_key:) ⇒ AuthResponse
Returns a new instance of AuthResponse.
379 380 381 382 383 384 |
# File 'lib/bsv/auth/auth_fetch.rb', line 379 def initialize(status:, headers:, body:, identity_key:) @status = status @headers = headers @body = body @identity_key = identity_key end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
373 374 375 |
# File 'lib/bsv/auth/auth_fetch.rb', line 373 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
373 374 375 |
# File 'lib/bsv/auth/auth_fetch.rb', line 373 def headers @headers end |
#identity_key ⇒ Object (readonly)
Returns the value of attribute identity_key.
373 374 375 |
# File 'lib/bsv/auth/auth_fetch.rb', line 373 def identity_key @identity_key end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
373 374 375 |
# File 'lib/bsv/auth/auth_fetch.rb', line 373 def status @status end |