Class: Lapis::Yggdrasil::Messaging::Request Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/lapis/yggdrasil/messaging/request.rb

Overview

This class is abstract.

Base class for all request messages.

Instance Method Summary collapse

Instance Method Details

#endpointString

Path on the server that handles the request.

Returns:

  • (String)

    Path to handler.



11
12
13
# File 'lib/lapis/yggdrasil/messaging/request.rb', line 11

def endpoint
  fail NotImplementedError, 'Sub-class must implement this method'
end

#to_jsonString

Generates a JSON string that can be sent to an authentication server.

Returns:

  • (String)

    JSON string.



17
18
19
# File 'lib/lapis/yggdrasil/messaging/request.rb', line 17

def to_json
  fail NotImplementedError, 'Sub-class must implement this method'
end