Class: Wurk::API::Router::Match

Inherits:
Struct
  • Object
show all
Defined in:
lib/wurk/api/router.rb

Overview

handler nil means nothing matched the path; allowed then carries the verbs registered for a path that did match, so the caller can answer 405 with an Allow header instead of a misleading 404.

Instance Attribute Summary collapse

Instance Attribute Details

#allowedObject

Returns the value of attribute allowed

Returns:

  • (Object)

    the current value of allowed



26
27
28
# File 'lib/wurk/api/router.rb', line 26

def allowed
  @allowed
end

#handlerObject

Returns the value of attribute handler

Returns:

  • (Object)

    the current value of handler



26
27
28
# File 'lib/wurk/api/router.rb', line 26

def handler
  @handler
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



26
27
28
# File 'lib/wurk/api/router.rb', line 26

def params
  @params
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



26
27
28
# File 'lib/wurk/api/router.rb', line 26

def scope
  @scope
end