Sha256: fd2b316eb54494e5cf9ef9611312ff00458ea5da4cbedf539ee822a8d1a42749

Contents?: true

Size: 954 Bytes

Versions: 4

Compression:

Stored size: 954 Bytes

Contents

module PactBroker
  module Matrix
    class UnresolvedSelector < Hash
      def initialize(params = {})
        merge!(params)
      end

      def pacticipant_name
        self[:pacticipant_name]
      end

      def pacticipant_version_number
        self[:pacticipant_version_number]
      end

      def latest?
        !!latest
      end

      def latest
        self[:latest]
      end

      def tag
        self[:tag]
      end

      def latest= latest
        self[:latest] = latest
      end

      def tag= tag
        self[:tag] = tag
      end

      def pacticipant_name= pacticipant_name
        self[:pacticipant_name] = pacticipant_name
      end

      def pacticipant_version_number= pacticipant_version_number
        self[:pacticipant_version_number] = pacticipant_version_number
      end

      def max_age= max_age
        self[:max_age] = max_age
      end

      def max_age
        self[:max_age]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact_broker-2.52.2 lib/pact_broker/matrix/unresolved_selector.rb
pact_broker-2.52.1 lib/pact_broker/matrix/unresolved_selector.rb
pact_broker-2.52.0 lib/pact_broker/matrix/unresolved_selector.rb
pact_broker-2.51.0 lib/pact_broker/matrix/unresolved_selector.rb