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