Class: Lapis::Yggdrasil::Messaging::SignoutRequest
- Defined in:
- lib/lapis/yggdrasil/messaging/signout_request.rb
Overview
Request for invalidating sessions without access tokens.
Instance Method Summary collapse
-
#endpoint ⇒ String
Path on the server that handles the request.
-
#initialize(username, password) ⇒ SignoutRequest
constructor
Creates a new signout request.
-
#to_json ⇒ String
Generates a JSON string that can be sent to an authentication server.
Constructor Details
#initialize(username, password) ⇒ SignoutRequest
Creates a new signout request.
14 15 16 17 |
# File 'lib/lapis/yggdrasil/messaging/signout_request.rb', line 14 def initialize(username, password) @username = username.dup.freeze @password = password.dup.freeze end |
Instance Method Details
#endpoint ⇒ String
Path on the server that handles the request.
21 22 23 |
# File 'lib/lapis/yggdrasil/messaging/signout_request.rb', line 21 def endpoint '/signout' end |
#to_json ⇒ String
Generates a JSON string that can be sent to an authentication server.
27 28 29 30 31 32 |
# File 'lib/lapis/yggdrasil/messaging/signout_request.rb', line 27 def to_json { :username => @username, :password => @password }.to_json end |