Class: Webmachine::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/api.rb

Direct Known Subclasses

Adapters::Rack3::RackRequest

Instance Method Summary collapse

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