Method: CloudKit::OpenIDStore#remove_association
- Defined in:
- lib/cloudkit/openid_store.rb
#remove_association(server_url, handle) ⇒ Object
:nodoc:
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/cloudkit/openid_store.rb', line 37 def remove_association(server_url, handle) #:nodoc: result = @@store.get( CloudKit::URI.new('/cloudkit_openid_associations'), :server_url => server_url, :handle => Base64.encode64(handle)) return nil unless result.status == 200 responses, associations = resolve_associations(result.parsed_content) return nil if associations.empty? uris = result.parsed_content['uris'] responses.each_with_index do |r, index| @@store.delete(CloudKit::URI.new(uris[index]), :etag => r.etag) end end |