Sha256: f72ba4cfff3ced74ddc65c65a4a6c242929b723b5b7637a97c08a65d3f821d01

Contents?: true

Size: 474 Bytes

Versions: 10

Compression:

Stored size: 474 Bytes

Contents

require 'pact_broker/repositories'
require 'pact_broker/relationships/groupify'

module PactBroker

  module Groups
    module Service

      extend self

      extend PactBroker::Repositories
      extend PactBroker::Services

      def find_group_containing pacticipant
        groups.find { | group | group.include_pacticipant? pacticipant }
      end

      def groups
        Relationships::Groupify.call(index_service.find_all_index_items)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pact_broker-2.66.0 lib/pact_broker/groups/service.rb
pact_broker-2.65.0 lib/pact_broker/groups/service.rb
pact_broker-2.64.0 lib/pact_broker/groups/service.rb
pact_broker-2.63.0 lib/pact_broker/groups/service.rb
pact_broker-2.62.0 lib/pact_broker/groups/service.rb
pact_broker-2.61.0 lib/pact_broker/groups/service.rb
pact_broker-2.60.1 lib/pact_broker/groups/service.rb
pact_broker-2.60.0 lib/pact_broker/groups/service.rb
pact_broker-2.59.2 lib/pact_broker/groups/service.rb
pact_broker-2.59.1 lib/pact_broker/groups/service.rb