Module: Navigable::Server::Endpoint::InstanceMethods

Defined in:
lib/navigable/server/endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



26
27
28
# File 'lib/navigable/server/endpoint.rb', line 26

def request
  @request
end

Instance Method Details

#executeObject

Raises:

  • (NotImplementedError)


32
33
34
35
36
37
38
39
# File 'lib/navigable/server/endpoint.rb', line 32

def execute
  raise NotImplementedError.new(EXECUTE_NOT_IMPLEMENTED_MESSAGE) unless command_key

  return unauthenticated unless authenticated?
  return unauthorized unless authorized?

  dispatch
end

#inject(request: Request.new) ⇒ Object



28
29
30
# File 'lib/navigable/server/endpoint.rb', line 28

def inject(request: Request.new)
  @request = request
end