Sha256: 8970c7abe893309444300d99d3ec413fba40d9b3fe5035536bb1a087325ae23f

Contents?: true

Size: 609 Bytes

Versions: 53

Compression:

Stored size: 609 Bytes

Contents

class Ey::Core::Client
  class Real
    def destroy_ssl_certificate(params={})
      id  = params["id"]
      url = params.delete("url")

      request(
        :method => :delete,
        :path => "ssl_certificates/#{id}",
        :url  => url,
      )
    end
  end

  class Mock
    def destroy_ssl_certificate(params={})
      url = params.delete("url")

      ssl_certificate_id = params["id"] || url_params(url)["ssl_certificates"]
      self.data[:ssl_certificates][ssl_certificate_id]["deleted_at"] = Time.now

      response(
        :body   => nil,
        :status => 204,
      )
    end
  end
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.6.3 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.6.1 lib/ey-core/requests/destroy_ssl_certificate.rb
groove-ey-core-3.6.3 lib/ey-core/requests/destroy_ssl_certificate.rb
groove-ey-core-3.6.2 lib/ey-core/requests/destroy_ssl_certificate.rb
groove-ey-core-3.6.1 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.5.0 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.4.4 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.4.2 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.4.1 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.4.0 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.3.1 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.3.0 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.2.6 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.2.5 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.2.4 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.2.3 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.2.2 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.2.1 lib/ey-core/requests/destroy_ssl_certificate.rb
ey-core-3.2.0 lib/ey-core/requests/destroy_ssl_certificate.rb