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