Sha256: 5438e0374331aacfff304ef5caab15e6348c646adf229f92722dc919eeaf817e

Contents?: true

Size: 633 Bytes

Versions: 26

Compression:

Stored size: 633 Bytes

Contents

require 'pact_broker/api/resources/base_resource'

module PactBroker
  module Api
    module Resources
      class Integration < BaseResource
        def allowed_methods
          ["OPTIONS", "DELETE"]
        end

        def resource_exists?
          consumer && provider
        end

        def delete_resource
          integration_service.delete(consumer_name, provider_name)
          true
        end

        def policy_name
          :'integrations::integration'
        end

        def integration
          @integration ||= OpenStruct.new(consumer: consumer, provider: provider)
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pact_broker-2.79.1 lib/pact_broker/api/resources/integration.rb
pact_broker-2.79.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.78.1 lib/pact_broker/api/resources/integration.rb
pact_broker-2.78.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.77.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.76.2 lib/pact_broker/api/resources/integration.rb
pact_broker-2.76.1 lib/pact_broker/api/resources/integration.rb
pact_broker-2.76.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.75.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.74.1 lib/pact_broker/api/resources/integration.rb
pact_broker-2.74.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.73.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.72.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.71.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.70.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.69.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.68.1 lib/pact_broker/api/resources/integration.rb
pact_broker-2.68.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.67.0 lib/pact_broker/api/resources/integration.rb
pact_broker-2.66.0 lib/pact_broker/api/resources/integration.rb