# File lib/twitter/base.rb, line 37 def self.fetch(attrs) return unless identity_map if object = identity_map.fetch(Marshal.dump(attrs)) return object end return yield if block_given? raise Twitter::Error::IdentityMapKeyError, "key not found" end