Sha256: 0360d145e20f9edb0da806df42bf44d2ef6589826d7543a66da03208d68f052d

Contents?: true

Size: 410 Bytes

Versions: 34

Compression:

Stored size: 410 Bytes

Contents

class Ey::Core::Client
  class Real
    def destroy_blueprint(params={})
      id = params.delete("id")

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

  class Mock
    def destroy_blueprint(params={})
      blueprint = find(:blueprints, params["id"])

      self.data[:blueprints].delete(blueprint["id"])

      response(status: 204)
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

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