class PactBroker::Api::Resources::TaggedPactVersions
Public Instance Methods
allowed_methods()
click to toggle source
# File lib/pact_broker/api/resources/tagged_pact_versions.rb, line 16 def allowed_methods ["GET", "DELETE", "OPTIONS"] end
content_types_provided()
click to toggle source
# File lib/pact_broker/api/resources/tagged_pact_versions.rb, line 12 def content_types_provided [["application/hal+json", :to_json]] end
delete_resource()
click to toggle source
# File lib/pact_broker/api/resources/tagged_pact_versions.rb, line 28 def delete_resource pact_service.delete_all_pact_publications_between consumer_name, and: provider_name, tag: identifier_from_path[:tag] set_post_deletion_response true end
pacts()
click to toggle source
# File lib/pact_broker/api/resources/tagged_pact_versions.rb, line 34 def pacts @pacts ||= pact_service.find_all_pact_versions_between consumer_name, and: provider_name, tag: identifier_from_path[:tag] end
policy_name()
click to toggle source
# File lib/pact_broker/api/resources/tagged_pact_versions.rb, line 38 def policy_name :'pacts::pact_versions' end
resource_exists?()
click to toggle source
# File lib/pact_broker/api/resources/tagged_pact_versions.rb, line 20 def resource_exists? consumer && provider end
to_json()
click to toggle source
# File lib/pact_broker/api/resources/tagged_pact_versions.rb, line 24 def to_json decorator_class(:tagged_pact_versions_decorator).new(pacts).to_json(**decorator_options(identifier_from_path)) end