Module: Navigable::Server::Endpoint::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#executes(command_key) ⇒ Object



20
21
22
# File 'lib/navigable/server/endpoint.rb', line 20

def executes(command_key)
  @command_key = command_key
end

#responds_to(verb, path) ⇒ Object



16
17
18
# File 'lib/navigable/server/endpoint.rb', line 16

def responds_to(verb, path)
  Navigable::Server.add_endpoint(verb: verb, path: path, endpoint_class: self)
end