class Pact::Consumer::Request::Actual

Public Class Methods

from_hash(hash) click to toggle source
# File lib/pact/consumer/request.rb, line 9
def self.from_hash(hash)
  sym_hash = symbolize_keys hash
  method = sym_hash.fetch(:method)
  path = sym_hash.fetch(:path)
  query = sym_hash.fetch(:query)
  headers = sym_hash.fetch(:headers)
  body = sym_hash.fetch(:body, nil)
  new(method, path, headers, body, query)
end
key_not_found() click to toggle source
# File lib/pact/consumer/request.rb, line 21
def self.key_not_found
  nil
end