Class: Lapis::Yggdrasil::Messaging::InvalidateRequest
- Inherits:
-
TokenRequest
- Object
- Request
- TokenRequest
- Lapis::Yggdrasil::Messaging::InvalidateRequest
- Defined in:
- lib/lapis/yggdrasil/messaging/invalidate_request.rb
Overview
Request for ending a session.
Instance Method Summary collapse
-
#endpoint ⇒ String
Path on the server that handles the request.
-
#initialize(client_token, access_token) ⇒ InvalidateRequest
constructor
Creates a new invalidate request.
-
#to_json ⇒ String
Generates a JSON string that can be sent to an authentication server.
Constructor Details
#initialize(client_token, access_token) ⇒ InvalidateRequest
Creates a new invalidate request.
14 15 16 |
# File 'lib/lapis/yggdrasil/messaging/invalidate_request.rb', line 14 def initialize(client_token, access_token) super(client_token, access_token) end |
Instance Method Details
#endpoint ⇒ String
Path on the server that handles the request.
20 21 22 |
# File 'lib/lapis/yggdrasil/messaging/invalidate_request.rb', line 20 def endpoint '/invalidate' end |
#to_json ⇒ String
Generates a JSON string that can be sent to an authentication server.
26 27 28 |
# File 'lib/lapis/yggdrasil/messaging/invalidate_request.rb', line 26 def to_json structure.to_json end |