Sha256: 61d73675c28a2e8ae235367bd5fdd56cdf4fa0bb5f20d13a7249445c2b66037d

Contents?: true

Size: 760 Bytes

Versions: 23

Compression:

Stored size: 760 Bytes

Contents

module Heroku
  class API

    # DELETE /user/keys/:key
    def delete_key(key)
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/user/keys/#{CGI.escape(key).gsub('.','%2E')}"
      )
    end

    # DELETE /user/keys
    def delete_keys
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/user/keys"
      )
    end

    # GET /user/keys
    def get_keys
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/user/keys"
      )
    end

    # POST /user/keys
    def post_key(key)
      request(
        :body     => key,
        :expects  => 200,
        :method   => :post,
        :path     => "/user/keys"
      )
    end

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
heroku-api-0.2.13 lib/heroku/api/keys.rb
heroku-api-0.2.12 lib/heroku/api/keys.rb
heroku-api-0.2.11 lib/heroku/api/keys.rb
heroku-api-0.2.10 lib/heroku/api/keys.rb
heroku-api-0.2.9 lib/heroku/api/keys.rb
heroku-api-0.2.8 lib/heroku/api/keys.rb
heroku-api-0.2.7 lib/heroku/api/keys.rb
heroku-api-0.2.6 lib/heroku/api/keys.rb
heroku-api-0.2.5 lib/heroku/api/keys.rb
heroku-api-0.2.4 lib/heroku/api/keys.rb
heroku-api-0.2.3 lib/heroku/api/keys.rb
heroku-api-0.2.2 lib/heroku/api/keys.rb
heroku-api-0.2.1 lib/heroku/api/keys.rb
heroku-api-0.2.0 lib/heroku/api/keys.rb
heroku-api-0.1.8 lib/heroku/api/keys.rb
heroku-api-0.1.7 lib/heroku/api/keys.rb
heroku-api-0.1.6 lib/heroku/api/keys.rb
heroku-api-0.1.5 lib/heroku/api/keys.rb
heroku-api-0.1.4 lib/heroku/api/keys.rb
heroku-api-0.1.3 lib/heroku/api/keys.rb