Sha256: 32f2ff8237c7782fd67d7d3100ae53f38011ef9c9d3bd787129e76c94ab0a4b2

Contents?: true

Size: 652 Bytes

Versions: 17

Compression:

Stored size: 652 Bytes

Contents

require 'pact_broker/api/resources/base_resource'
require 'pact_broker/api/decorators/relationships_csv_decorator'

module PactBroker
  module Api
    module Resources
      class Relationships < BaseResource
        def content_types_provided
          [["text/csv", :to_csv]]
        end

        def allowed_methods
          ["GET", "OPTIONS"]
        end

        def to_csv
          PactBroker::Api::Decorators::RelationshipsCsvDecorator.new(pacts).to_csv
        end

        def pacts
          pact_service.find_latest_pacts
        end

        def policy_name
          :'integrations::integrations'
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pact_broker-2.74.1 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.74.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.73.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.72.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.71.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.70.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.69.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.68.1 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.68.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.67.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.66.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.65.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.64.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.63.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.62.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.61.0 lib/pact_broker/api/resources/relationships.rb
pact_broker-2.60.1 lib/pact_broker/api/resources/relationships.rb