Class: Webmachine::Request

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

Instance Method Summary collapse

Instance Method Details

#patch?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


16
17
18
# File 'lib/pact_broker/api.rb', line 16

def put?
  method == "PUT" || method == "PATCH"
end

#really_put?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/pact_broker/api.rb', line 20

def really_put?
  method == "PUT"
end