Sha256: b908f40b250a42e23f37cb67b031c053dcc9a61f77d862a1c631446a6bb99f5b

Contents?: true

Size: 280 Bytes

Versions: 17

Compression:

Stored size: 280 Bytes

Contents

require 'pact/consumer_contract/query_hash'
require 'pact/consumer_contract/query_string'

module Pact
  class Query
    def self.create query
      if query.is_a? Hash
        Pact::QueryHash.new(query)
      else
        Pact::QueryString.new(query)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pact-support-1.15.1 lib/pact/consumer_contract/query.rb
pact-support-1.15.0 lib/pact/consumer_contract/query.rb
pact-support-1.14.3 lib/pact/consumer_contract/query.rb
pact-support-1.14.2 lib/pact/consumer_contract/query.rb
pact-support-1.14.1 lib/pact/consumer_contract/query.rb
pact-support-1.14.0 lib/pact/consumer_contract/query.rb
pact-support-1.13.0 lib/pact/consumer_contract/query.rb
pact-support-1.12.1 lib/pact/consumer_contract/query.rb
pact-support-1.12.0 lib/pact/consumer_contract/query.rb
pact-support-1.11.0 lib/pact/consumer_contract/query.rb
pact-support-1.10.3 lib/pact/consumer_contract/query.rb
pact-support-1.10.2 lib/pact/consumer_contract/query.rb
pact-support-1.10.1 lib/pact/consumer_contract/query.rb
pact-support-1.10.0 lib/pact/consumer_contract/query.rb
pact-support-1.9.0 lib/pact/consumer_contract/query.rb
pact-support-1.8.1 lib/pact/consumer_contract/query.rb
pact-support-1.8.0 lib/pact/consumer_contract/query.rb