Class: Truss::Router::Routes::Get

Inherits:
Node
  • Object
show all
Defined in:
lib/truss/router/routes/get.rb

Instance Attribute Summary

Attributes inherited from Node

#endpoint, #matchable_regex, #options, #path, #request_method

Instance Method Summary collapse

Methods inherited from Node

#call, #matches?

Constructor Details

#initialize(path, endpoint, opts = {}) ⇒ Get

Returns a new instance of Get.



5
6
7
# File 'lib/truss/router/routes/get.rb', line 5

def initialize(path, endpoint, opts={})
    super(:get, path, endpoint, opts)
end