Class: AtprotoAuth::PAR::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/atproto_auth/par/response.rb

Overview

Represents a PAR response

Instance Attribute Summary collapse

Instance Method Summary collapse

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_inObject (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_uriObject (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