class ApiMapper::Route
Attributes
mapper[R]
Public Class Methods
new(method, path, mapper)
click to toggle source
# File lib/api_mapper/router.rb, line 33 def initialize(method, path, mapper) @method = method @path = Addressable::Template.new(path) @mapper = mapper end
Public Instance Methods
match(method, path)
click to toggle source
# File lib/api_mapper/router.rb, line 39 def match(method, path) @method == method && @path.match(path) end