Class: Commute::Layer
- Inherits:
-
Struct
- Object
- Struct
- Commute::Layer
- Defined in:
- lib/commute/layer.rb
Overview
TODO:
more docs and tests.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#request(request, options) ⇒ Object
Default request forwards to the call method.
-
#response(response, options) ⇒ Object
Default response forwards to the call method.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/commute/layer.rb', line 4 def name @name end |
Instance Method Details
#request(request, options) ⇒ Object
Default request forwards to the call method.
7 8 9 |
# File 'lib/commute/layer.rb', line 7 def request request, call request, if respond_to? :call end |
#response(response, options) ⇒ Object
Default response forwards to the call method.
12 13 14 |
# File 'lib/commute/layer.rb', line 12 def response response, call response, if respond_to? :call end |