Class: AtprotoAuth::PAR::Response
- Inherits:
-
Object
- Object
- AtprotoAuth::PAR::Response
- Defined in:
- lib/atproto_auth/par/response.rb
Overview
Represents a PAR response
Instance Attribute Summary collapse
-
#expires_in ⇒ Object
readonly
Returns the value of attribute expires_in.
-
#request_uri ⇒ Object
readonly
Returns the value of attribute request_uri.
Instance Method Summary collapse
-
#initialize(request_uri:, expires_in:) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(request_uri:, expires_in:) ⇒ Response
Returns a new instance of Response.
9 10 11 12 13 |
# File 'lib/atproto_auth/par/response.rb', line 9 def initialize(request_uri:, expires_in:) @request_uri = request_uri @expires_in = expires_in.to_i validate! end |
Instance Attribute Details
#expires_in ⇒ Object (readonly)
Returns the value of attribute expires_in.
7 8 9 |
# File 'lib/atproto_auth/par/response.rb', line 7 def expires_in @expires_in end |
#request_uri ⇒ Object (readonly)
Returns the value of attribute request_uri.
7 8 9 |
# File 'lib/atproto_auth/par/response.rb', line 7 def request_uri @request_uri end |