Sha256: f51db4e104f02f727e5d29c9a9b46fd53db7172ddf7790a239d28fe1c46207ec

Contents?: true

Size: 493 Bytes

Versions: 3

Compression:

Stored size: 493 Bytes

Contents

module DigitalOcean
  module Resource
    class SSHKey < Base
      def list
        @connection.get('/ssh_keys').body
      end

      def show(id)
        @connection.get("/ssh_keys/#{id}").body
      end

      def delete(id)
        @connection.delete("/ssh_keys/#{id}").body
      end

      #def add(args)
      #  @connection.get('/ssh_keys.json') do |query|
      #    apply_params(query, args)
      #  end.body
      #end
      #
      #def edit
      #end
      #
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
digital_ocean-0.1.0 lib/digital_ocean/resource/ssh_key.rb
digital_ocean-0.0.1 lib/digital_ocean/resource/ssh_key.rb
digital_ocean-0.0.1alpha1 lib/digital_ocean/resource/ssh_key.rb