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
10 11 12 |
# File 'lib/pact_broker/api.rb', line 10 def patch? method == "PATCH" end |
#put? ⇒ Boolean
This makes PATCH go through the PUT state machine path
15 16 17 |
# File 'lib/pact_broker/api.rb', line 15 def put? method == "PUT" || method == "PATCH" end |
#really_put? ⇒ Boolean
19 20 21 |
# File 'lib/pact_broker/api.rb', line 19 def really_put? method == "PUT" end |