class Hitman::Route
Attributes
method[RW]
params[RW]
path[RW]
Public Class Methods
new(method, path)
click to toggle source
# File lib/hitman/route.rb, line 5 def initialize(method, path) @method = method @path = path @params = [] end
Public Instance Methods
to_s()
click to toggle source
# File lib/hitman/route.rb, line 15 def to_s "#{method.ljust(10)} #{url.ljust(20)} #{params.join(', ')}" end
url()
click to toggle source
# File lib/hitman/route.rb, line 11 def url path end