Sha256: 457fdbf494b64e90b78de2f6e26cceb47aa3bb267e2808a2729edc6885b480db
Contents?: true
Size: 496 Bytes
Versions: 9
Compression:
Stored size: 496 Bytes
Contents
module Pact module Provider class PactURI attr_reader :uri, :options def initialize (uri, options={}) @uri = uri @options = options end def == other other.is_a?(PactURI) && uri == other.uri && options == other.options end def to_s if(options[:username]) URI(@uri).tap { |x| x.userinfo="#{options[:username]}:*****"}.to_s else @uri end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems