class Pact::QueryString
Public Class Methods
new(query)
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 8 def initialize query @query = query.nil? ? query : query.dup end
Public Instance Methods
==(other)
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 24 def == other QueryString === other && other.query == query end
as_json(opts = {})
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 12 def as_json opts = {} @query end
difference(other)
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 28 def difference(other) require 'pact/matchers' # avoid recursive loop between this file and pact/matchers Pact::Matchers.diff(query, other.query) end
empty?()
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 41 def empty? @query && @query.empty? end
eql?(other)
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 20 def eql? other self == other end
nil?()
click to toggle source
Naughty…
# File lib/pact/consumer_contract/query_string.rb, line 46 def nil? @query.nil? end
query()
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 33 def query @query end
to_json(opts = {})
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 16 def to_json opts = {} as_json(opts).to_json(opts) end
to_s()
click to toggle source
# File lib/pact/consumer_contract/query_string.rb, line 37 def to_s @query end