module Mountapi module Route class Method def initialize(method) @http_method = method.downcase.to_sym end def to_sym raw_value end def raw_value @http_method end def match?(meth) meth.downcase.to_sym == @http_method end end end end