# File lib/twitter/identity.rb, line 7 def self.fetch(attrs) return unless identity_map id = attrs[:id] if id && object = identity_map.fetch(id) return object.update(attrs) end return yield if block_given? raise Twitter::Error::IdentityMapKeyError, "key not found" end