Sha256: 71199b68d467e3f4675acee896754e95e5aba1ea0da25e26cea428dd5e47009b

Contents?: true

Size: 354 Bytes

Versions: 8

Compression:

Stored size: 354 Bytes

Contents

module Octopi
  class Key < Base
    include Resource
    
    attr_reader :user

    def initialize(api, data, user = nil)
      super api, data
      @user = user
    end
    
    def remove!
      result = @api.post "/user/key/remove", :id => id
      keys = result["public_keys"].select { |k| k["title"] == title }
      keys.empty?
    end
  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
ddollar-octopi-0.0.13 lib/octopi/key.rb
fcoury-octopi-0.0.11 lib/octopi/key.rb
fcoury-octopi-0.0.9 lib/octopi/key.rb
fcoury-octopi-0.1.0 lib/octopi/key.rb
philnash-octopi-0.0.11 lib/octopi/key.rb
philnash-octopi-0.0.12 lib/octopi/key.rb
octopi-0.1.0 lib/octopi/key.rb
octopi-0.0.9 lib/octopi/key.rb