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)


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

Returns:

  • (Boolean)


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

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

#really_put?Boolean

Returns:

  • (Boolean)


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

def really_put?
  method == "PUT"
end