Class: Sliver::Endpoints
- Inherits:
-
Object
- Object
- Sliver::Endpoints
- Defined in:
- lib/sliver/endpoints.rb
Instance Method Summary collapse
- #append(path, action) ⇒ Object
- #find(environment) ⇒ Object
-
#initialize ⇒ Endpoints
constructor
A new instance of Endpoints.
Constructor Details
#initialize ⇒ Endpoints
Returns a new instance of Endpoints.
4 5 6 |
# File 'lib/sliver/endpoints.rb', line 4 def initialize @paths = {} end |
Instance Method Details
#append(path, action) ⇒ Object
8 9 10 |
# File 'lib/sliver/endpoints.rb', line 8 def append(path, action) paths[path] = action end |