Sha256: 715b86fbad28cbedb954c7fed36f1a09220806b892aa22c220616a2dc596e5a1

Contents?: true

Size: 463 Bytes

Versions: 8

Compression:

Stored size: 463 Bytes

Contents

module PactBroker
  module Contracts
    Notice = Struct.new(:type, :text) do
      def self.info(text)
        Notice.new("info", text)
      end

      def self.debug(text)
        Notice.new("debug", text)
      end

      def self.warning(text)
        Notice.new("warning", text)
      end

      def self.prompt(text)
        Notice.new("prompt", text)
      end

      def self.success(text)
        Notice.new("success", text)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact_broker-2.88.0 lib/pact_broker/contracts/notice.rb
pact_broker-2.87.0 lib/pact_broker/contracts/notice.rb
pact_broker-2.86.0 lib/pact_broker/contracts/notice.rb
pact_broker-2.85.1 lib/pact_broker/contracts/notice.rb
pact_broker-2.85.0 lib/pact_broker/contracts/notice.rb
pact_broker-2.84.0 lib/pact_broker/contracts/notice.rb
pact_broker-2.83.0 lib/pact_broker/contracts/notice.rb
pact_broker-2.82.0 lib/pact_broker/contracts/notice.rb