Sha256: 065460c1156d9d3ed801061b73b23274aacfc75b6e24c311d3e3d6e67599f2cc

Contents?: true

Size: 282 Bytes

Versions: 51

Compression:

Stored size: 282 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

51 entries across 51 versions & 1 rubygems

Version Path
pact-support-1.7.2 lib/pact/consumer_contract/query.rb
pact-support-1.7.1 lib/pact/consumer_contract/query.rb
pact-support-1.7.0 lib/pact/consumer_contract/query.rb
pact-support-1.6.6 lib/pact/consumer_contract/query.rb
pact-support-1.6.5 lib/pact/consumer_contract/query.rb
pact-support-1.7.0.alpha.1 lib/pact/consumer_contract/query.rb
pact-support-1.6.4 lib/pact/consumer_contract/query.rb
pact-support-1.6.3 lib/pact/consumer_contract/query.rb
pact-support-1.6.2 lib/pact/consumer_contract/query.rb
pact-support-1.6.1 lib/pact/consumer_contract/query.rb
pact-support-1.6.0 lib/pact/consumer_contract/query.rb
pact-support-1.5.2 lib/pact/consumer_contract/query.rb
pact-support-1.5.1 lib/pact/consumer_contract/query.rb
pact-support-1.5.0 lib/pact/consumer_contract/query.rb
pact-support-1.4.0 lib/pact/consumer_contract/query.rb
pact-support-1.3.1 lib/pact/consumer_contract/query.rb
pact-support-1.3.0 lib/pact/consumer_contract/query.rb
pact-support-1.2.99.alpha.1 lib/pact/consumer_contract/query.rb
pact-support-1.3.0.alpha.2 lib/pact/consumer_contract/query.rb
pact-support-1.3.0.alpha.1 lib/pact/consumer_contract/query.rb