class RackStep::Route

Attributes

controller[RW]
path[RW]
verb[RW]

Public Class Methods

new(verb, path, controller) click to toggle source
# File lib/route.rb, line 11
def initialize(verb, path, controller)
  @verb = verb
  @path = path
  @controller = controller
end

Public Instance Methods

id() click to toggle source

Unique id (String) of the route (verb + path). Eg: ‘GETuser’.

# File lib/route.rb, line 18
def id
  verb + path
end