Sha256: 95017b9e7eae951761e9671aae46b2ec89a295080ee00d9702ca7187cfc5e412

Contents?: true

Size: 740 Bytes

Versions: 29

Compression:

Stored size: 740 Bytes

Contents

module Heroku
  class API

    # DELETE /user/keys/:key
    def delete_key(key)
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/user/keys/#{escape(key)}"
      )
    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

29 entries across 29 versions & 2 rubygems

Version Path
heroku-api-0.4.3 lib/heroku/api/keys.rb
heroku-api-0.4.2 lib/heroku/api/keys.rb
heroku-api-0.4.1 lib/heroku/api/keys.rb
heroku-api-0.4.0 lib/heroku/api/keys.rb
heroku-api-0.3.23 lib/heroku/api/keys.rb
heroku-api-0.3.22 lib/heroku/api/keys.rb
heroku-api-0.3.21 lib/heroku/api/keys.rb
heroku-api-0.3.20 lib/heroku/api/keys.rb
heroku-api-0.3.19 lib/heroku/api/keys.rb
heroku-api-0.3.18 lib/heroku/api/keys.rb
heroku-api-0.3.17 lib/heroku/api/keys.rb
heroku-api-0.3.16 lib/heroku/api/keys.rb
heroku-api-0.3.15 lib/heroku/api/keys.rb
heroku-api-0.3.14 lib/heroku/api/keys.rb
heroku-api-0.3.13 lib/heroku/api/keys.rb
heroku-api-0.3.12 lib/heroku/api/keys.rb
heroku-api-0.3.11 lib/heroku/api/keys.rb
heroku-api-0.3.10 lib/heroku/api/keys.rb
pogoapp-api-0.3.8 lib/heroku/api/keys.rb
heroku-api-0.3.9 lib/heroku/api/keys.rb