Class: Webmachine::Request
- Inherits:
-
Object
- Object
- Webmachine::Request
- Defined in:
- lib/pact_broker/api.rb
Instance Method Summary collapse
- #patch? ⇒ Boolean
-
#put? ⇒ Boolean
This makes PATCH go through the PUT state machine path.
- #really_put? ⇒ Boolean
Instance Method Details
#patch? ⇒ Boolean
11 12 13 |
# File 'lib/pact_broker/api.rb', line 11 def patch? method == "PATCH" end |
#put? ⇒ Boolean
This makes PATCH go through the PUT state machine path
16 17 18 |
# File 'lib/pact_broker/api.rb', line 16 def put? method == "PUT" || method == "PATCH" end |
#really_put? ⇒ Boolean
20 21 22 |
# File 'lib/pact_broker/api.rb', line 20 def really_put? method == "PUT" end |