Sha256: fa5c335ea04a6d5074c7f4862c6531e434e1031430490ee22c15c77a5c24e491

Contents?: true

Size: 484 Bytes

Versions: 18

Compression:

Stored size: 484 Bytes

Contents

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

module PactBroker

  module Services
    module GroupService

      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 pacticipant_service.find_relationships
      end

    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pact_broker-1.15.0 lib/pact_broker/services/group_service.rb
pact_broker-1.14.0 lib/pact_broker/services/group_service.rb
pact_broker-1.13.0 lib/pact_broker/services/group_service.rb
pact_broker-1.12.0 lib/pact_broker/services/group_service.rb
pact_broker-1.11.2 lib/pact_broker/services/group_service.rb
pact_broker-1.11.1 lib/pact_broker/services/group_service.rb
pact_broker-1.11.0 lib/pact_broker/services/group_service.rb
pact_broker-1.10.0 lib/pact_broker/services/group_service.rb
pact_broker-1.9.3 lib/pact_broker/services/group_service.rb
pact_broker-1.9.2 lib/pact_broker/services/group_service.rb
pact_broker-1.9.1 lib/pact_broker/services/group_service.rb
pact_broker-1.9.0 lib/pact_broker/services/group_service.rb
pact_broker-1.9.0.rc1 lib/pact_broker/services/group_service.rb
pact_broker-1.8.1 lib/pact_broker/services/group_service.rb
pact_broker-1.8.0 lib/pact_broker/services/group_service.rb
pact_broker-1.7.0 lib/pact_broker/services/group_service.rb
pact_broker-1.6.0 lib/pact_broker/services/group_service.rb
pact_broker-1.5.0 lib/pact_broker/services/group_service.rb